Function at 0x10036060
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], 0x10047700
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 0x1003616f
mov eax, edx
cmp edx, 2
jne 0x10036284
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov edx, edi
sub edx, ecx
sar edx, 4
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], edi
mov edx, edi
sub edx, ecx
je 0x10036109
js 0x1003665e
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.100366c0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
mov eax, dword [eax]
jmp 0x10036149
mov ebx, eax
movzx eax, byte [eax]
mov byte [edi], al
movsd xmm0, qword [ebx + 8]
movsd qword [edi + 8], xmm0
mov ecx, ebx
call fcn.10035fc0
mov byte [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov ecx, edi
call fcn.10035fc0
add dword [esi + 0xc], 0x10
mov eax, dword [esi]
add eax, 0x10
cmp eax, dword [esi + 0x14]
je 0x10036284
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
mov dword [esi], eax
jne 0x10036110
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
push edi
call fcn.10036860
jmp 0x10036144
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
test ecx, ecx
je 0x100361a2
cmp ecx, 0x10000000
jae 0x1003666a
mov dword [esi + 0x40], 0
lea eax, [esi + 0x18]
lea ecx, [esi + 8]
push eax
call fcn.100366c0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov ebx, dword [eax]
nop dword [eax]
cmp ebx, dword [esi + 0x14]
je 0x10036284
lea eax, [ebx + 0x28]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
mov dword [esi], ebx
je 0x10036200
movzx ecx, byte [ebx + 0x28]
mov byte [edi], cl
movsd xmm0, qword [ebx + 0x30]
movsd qword [edi + 8], xmm0
mov ecx, eax
call fcn.10035fc0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov ecx, edi
call fcn.10035fc0
add dword [esi + 0xc], 0x10
jmp 0x10036211
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
push edi
call fcn.10036860
mov edx, dword [esi]
mov ecx, dword [edx + 8]
cmp byte [ecx + 0xd], 0
je 0x10036240
nop dword [eax]
mov ebx, dword [edx + 4]
cmp byte [ebx + 0xd], 0
jne 0x100361b0
mov ecx, edx
mov edx, ebx
cmp ecx, dword [ebx + 8]
je 0x10036220
mov ebx, edx
jmp 0x100361b0
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10036240
jmp 0x100361b0
mov edi, dword [esi + 0x20]
mov ebx, dword [edi]
mov ecx, edi
push dword [ebx + 4]
push edi
call fcn.10036b00
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.10035fc0
movzx eax, byte [esi + 0x18]
lea ecx, [esi + 0x20]
push eax
call fcn.10036060
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x1003646f
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.10035fc0
mov byte [ebx - 0x10], 0
mov dword [ebx - 4], 0
mov dword [ebx - 8], 0
lea ecx, [esi + 0x18]
call fcn.10035fc0
mov edi, dword [esi + 0xc]
lea ecx, [edi - 0x10]
call fcn.10035fc0
movzx eax, byte [edi - 0x10]
add edi, 0xfffffff8
mov ecx, edi
push eax
call fcn.10036060
add dword [esi + 0xc], 0xfffffff0
movzx eax, byte [esi + 0x18]
cmp eax, 1
je 0x100363c0
cmp eax, 2
jne 0x1003626f
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], eax
cmp ebx, dword [esi]
jne 0x10036349
jmp 0x1003636f
movzx eax, byte [ebx]
mov byte [edi], al
movsd xmm0, qword [ebx + 8]
movsd qword [edi + 8], xmm0
mov ecx, ebx
call fcn.10035fc0
mov byte [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov ecx, edi
call fcn.10035fc0
add dword [esi + 0xc], 0x10
add ebx, 0x10
cmp ebx, dword [esi]
je 0x1003636f
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jne 0x10036310
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push ebx
push edi
mov dword [esi + 0x14], ebx
call fcn.10036860
mov ebx, dword [esi + 0x14]
add ebx, 0x10
cmp ebx, dword [esi]
jne 0x10036349
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
cmp edi, ebx
je 0x1003626f
mov dword [esi], eax
nop word cs:[eax + eax]
mov ecx, edi
call fcn.10035fc0
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10036060
add edi, 0x10
cmp edi, ebx
jne 0x10036390
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x1003626f
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 0x10036250
lea eax, [ebx + 0x28]
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
mov dword [esi], ebx
je 0x10036420
movzx ecx, byte [ebx + 0x28]
mov byte [edi], cl
movsd xmm0, qword [ebx + 0x30]
movsd qword [edi + 8], xmm0
mov ecx, eax
call fcn.10035fc0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov ecx, edi
call fcn.10035fc0
add dword [esi + 0xc], 0x10
jmp 0x10036431
mov dword [esi + 0x40], 0
lea ecx, [esi + 8]
push eax
push edi
call fcn.10036860
mov edx, dword [esi]
mov ecx, dword [edx + 8]
cmp byte [ecx + 0xd], 0
je 0x10036460
nop dword [eax]
mov ebx, dword [edx + 4]
cmp byte [ebx + 0xd], 0
jne 0x100363d0
mov ecx, edx
mov edx, ebx
cmp ecx, dword [ebx + 8]
je 0x10036440
mov ebx, edx
jmp 0x100363d0
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10036460
jmp 0x100363d0
movzx eax, byte [esi + 0x2c]
dec eax
cmp eax, 7
ja case.0x1003647d.4
jmp dword [eax*4 + 0x10036690]
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
push edi
call fcn.10036b00
push 0x38
push dword [edi]
call fcn.10157950
add esp, 8
push 8
push dword [ebx]
jmp 0x100365df
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x100364e7
mov ecx, dword [edi]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x100364dd
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10036658
add eax, 0x24
mov ebx, eax
mov ecx, edx
push ebx
push ecx
call fcn.10157950
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 0x100365df
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edi, dword [eax]
test edi, edi
je 0x100365dc
mov dword [esi], eax
mov ebx, dword [eax + 4]
cmp edi, ebx
je 0x10036595
nop dword [eax]
mov ecx, edi
call fcn.10035fc0
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10036060
add edi, 0x10
cmp edi, ebx
jne 0x10036520
mov ebx, dword [esi]
mov edi, dword [ebx]
jmp 0x10036597
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x10036590
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x1003656d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10036658
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.10157950
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 0x100365df
mov ebx, dword [esi]
mov eax, dword [ebx + 8]
sub eax, edi
cmp eax, 0x1000
jb 0x100365b9
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10036658
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.10157950
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.10157950
add esp, 8
mov edi, dword [esi + 8]
test edi, edi
je 0x10036645
mov ebx, dword [esi + 0xc]
cmp edi, ebx
je 0x1003661d
nop word cs:[eax + eax]
mov ecx, edi
call fcn.10035fc0
movzx eax, byte [edi]
lea ecx, [edi + 8]
push eax
call fcn.10036060
add edi, 0x10
cmp edi, ebx
jne 0x10036600
mov edi, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub eax, edi
cmp eax, 0x1000
jb 0x1003663b
mov ecx, dword [edi - 4]
add edi, 0xfffffffc
sub edi, ecx
cmp edi, 0x20
jae 0x10036658
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.10157950
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.100366b0
mov dword [esi + 0x40], 0
call fcn.100366b0
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
test byte [ebx + eax + 0x10], ah
add al, 101
add edx, dword [eax]
stosd dword es:[edi], eax
add edx, dword fs:[eax]
ljmp 0x365