Function at 0x10035fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 4], ecx
movzx edx, byte [ebp + 8]
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x10047630
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
cmp edx, 1
mov dword [esi + 0x2c], edx
je 0x100360b8
mov eax, edx
cmp edx, 2
jne 0x100361c4
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, ebx
sub eax, ecx
mov edx, ebx
mov dword [esi], ebx
sub edx, ecx
je 0x10036085
js 0x1003659e
sar eax, 4
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
call fcn.10036600
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], eax
cmp ebx, dword [esi]
jne 0x1003608d
jmp 0x100361c4
movzx eax, byte [ebx]
mov byte [edi], al
movsd xmm0, qword [ebx + 8]
movsd qword [edi + 8], xmm0
mov ecx, ebx
call fcn.10035f00
mov byte [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov ecx, edi
call fcn.10035f00
add dword [esi + 0xc], 0x10
add ebx, 0x10
cmp ebx, dword [esi]
je 0x100361c4
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jne 0x10036050
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push ebx
push edi
mov dword [esi + 0x14], ebx
call fcn.10036780
mov ebx, dword [esi + 0x14]
add ebx, 0x10
cmp ebx, dword [esi]
jne 0x1003608d
jmp 0x100361c4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100360e4
cmp eax, 0x10000000
jae 0x100365aa
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
call fcn.10036600
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [esi + 0x14], eax
mov ebx, dword [eax]
nop dword [eax + eax]
cmp ebx, dword [esi + 0x14]
je 0x100361c4
lea eax, [ebx + 0x28]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
mov dword [esi], ebx
je 0x10036140
movzx ecx, byte [ebx + 0x28]
mov byte [edi], cl
movsd xmm0, qword [ebx + 0x30]
movsd qword [edi + 8], xmm0
mov ecx, eax
call fcn.10035f00
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov ecx, edi
call fcn.10035f00
add dword [esi + 0xc], 0x10
jmp 0x10036151
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
push edi
call fcn.10036780
mov edx, dword [esi]
mov ecx, dword [edx + 8]
cmp byte [ecx + 0xd], 0
je 0x10036180
nop dword [eax]
mov ebx, dword [edx + 4]
cmp byte [ebx + 0xd], 0
jne 0x100360f0
mov ecx, edx
mov edx, ebx
cmp ecx, dword [ebx + 8]
je 0x10036160
mov ebx, edx
jmp 0x100360f0
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10036180
jmp 0x100360f0
mov edi, dword [esi + 0x20]
mov ebx, dword [edi]
mov ecx, edi
push dword [ebx + 4]
push edi
call fcn.10036a20
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [edi + 4], 0
lea ecx, [esi + 0x18]
call fcn.10035f00
movzx eax, byte [esi + 0x18]
lea ecx, [esi + 0x20]
push eax
call fcn.10035fa0
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x100363af
lea ecx, [ebx - 0x10]
movzx eax, byte [ebx - 0x10]
mov byte [esi + 0x18], al
movsd xmm0, qword [ebx - 8]
movsd qword [esi + 0x20], xmm0
call fcn.10035f00
mov byte [ebx - 0x10], 0
mov dword [ebx - 4], 0
mov dword [ebx - 8], 0
lea ecx, [esi + 0x18]
call fcn.10035f00
mov edi, dword [esi + 0xc]
lea ecx, [edi - 0x10]
call fcn.10035f00
movzx eax, byte [edi - 0x10]
add edi, 0xfffffff8
mov ecx, edi
push eax
call fcn.10035fa0
add dword [esi + 0xc], 0xfffffff0
movzx eax, byte [esi + 0x18]
cmp eax, 1
je 0x10036300
cmp eax, 2
jne 0x100361af
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], eax
cmp ebx, dword [esi]
jne 0x10036289
jmp 0x100362af
movzx eax, byte [ebx]
mov byte [edi], al
movsd xmm0, qword [ebx + 8]
movsd qword [edi + 8], xmm0
mov ecx, ebx
call fcn.10035f00
mov byte [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov ecx, edi
call fcn.10035f00
add dword [esi + 0xc], 0x10
add ebx, 0x10
cmp ebx, dword [esi]
je 0x100362af
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jne 0x10036250
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push ebx
push edi
mov dword [esi + 0x14], ebx
call fcn.10036780
mov ebx, dword [esi + 0x14]
add ebx, 0x10
cmp ebx, dword [esi]
jne 0x10036289
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
cmp edi, ebx
je 0x100361af
mov dword [esi], eax
nop word cs:[eax + eax]
mov ecx, edi
call fcn.10035f00
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10035fa0
add edi, 0x10
cmp edi, ebx
jne 0x100362d0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x100361af
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov ebx, dword [eax]
nop word [eax + eax]
cmp ebx, dword [esi + 0x14]
je 0x10036190
lea eax, [ebx + 0x28]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
mov dword [esi], ebx
je 0x10036360
movzx ecx, byte [ebx + 0x28]
mov byte [edi], cl
movsd xmm0, qword [ebx + 0x30]
movsd qword [edi + 8], xmm0
mov ecx, eax
call fcn.10035f00
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov ecx, edi
call fcn.10035f00
add dword [esi + 0xc], 0x10
jmp 0x10036371
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
push edi
call fcn.10036780
mov edx, dword [esi]
mov ecx, dword [edx + 8]
cmp byte [ecx + 0xd], 0
je 0x100363a0
nop dword [eax]
mov ebx, dword [edx + 4]
cmp byte [ebx + 0xd], 0
jne 0x10036310
mov ecx, edx
mov edx, ebx
cmp ecx, dword [ebx + 8]
je 0x10036380
mov ebx, edx
jmp 0x10036310
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100363a0
jmp 0x10036310
movzx eax, byte [esi + 0x2c]
dec eax
cmp eax, 7
ja case.0x100363bd.4
jmp dword [eax*4 + 0x100365d0]
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
push edi
call fcn.10036a20
push 0x38
push dword [edi]
call fcn.10155aa0
add esp, 8
push 8
push dword [ebx]
jmp 0x1003651f
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x10036427
mov ecx, dword [edi]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x1003641d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10036598
add eax, 0x24
mov ebx, eax
mov ecx, edx
push ebx
push ecx
call fcn.10155aa0
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x18
mov eax, dword [esi + 4]
push dword [eax]
jmp 0x1003651f
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax]
test edi, edi
je 0x1003651c
mov dword [esi], eax
mov ebx, dword [eax + 4]
cmp edi, ebx
je 0x100364d5
nop dword [eax]
mov ecx, edi
call fcn.10035f00
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10035fa0
add edi, 0x10
cmp edi, ebx
jne 0x10036460
mov ebx, dword [esi]
mov edi, dword [ebx]
jmp 0x100364d7
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x100364d0
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x100364ad
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10036598
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.10155aa0
add esp, 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 4]
mov edi, dword [eax]
push 0x10
push edi
jmp 0x1003651f
mov ebx, dword [esi]
mov eax, dword [ebx + 8]
sub eax, edi
cmp eax, 0x1000
jb 0x100364f9
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10036598
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.10155aa0
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0xc
push eax
call fcn.10155aa0
add esp, 8
mov edi, dword [esi + 8]
test edi, edi
je 0x10036585
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x1003655d
nop word cs:[eax + eax]
mov ecx, edi
call fcn.10035f00
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10035fa0
add edi, 0x10
cmp edi, ebx
jne 0x10036540
mov edi, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub eax, edi
cmp eax, 0x1000
jb 0x1003657b
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10036598
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.10155aa0
add esp, 8
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x40], 0
call fcn.100365f0
mov dword [esi + 0x40], 0
call fcn.100365f0
nop word cs:[eax + eax]
push ebp
sub esp, 8
lea esi, [ebp - 0x44]
mov ebp, dword [esi + 0x30]
call sub.VCRUNTIME140.dll___std_terminate
nop
les esp, [ebx + 3]
adc byte [esp + 3], al
adc bl, ch
arpl word [ebx], ax
adc byte [edx], ch
add edx, dword gs:[eax]
sub ah, byte [ebp + 3]
adc byte [edx], ch
add edx, dword gs:[eax]
sub ah, byte [ebp + 3]
invalid
invalid
add edx, dword fs:[eax]