Function at 0x36a5770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
mov esi, dword [0x1011f340]
lea eax, [esp + 0x54]
push edi
push 8
xor edi, edi
mov dword [esp + 0x14], edx
push eax
mov ebx, ecx
mov dword [esp + 0x14], edi
call dword [0x1011f44c]
push 0x4021
push 7
lea eax, [esp + 0x60]
mov dword [esp + 0x40], 0x18
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], edi
push eax
push 0x100001
lea eax, [esp + 0x20]
mov dword [esp + 0x58], 0x40
push eax
mov eax, dword [esi + 0x5dc]
lea ecx, [esi + 0x5dc]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call dword [eax + 0x24]
call eax
mov esi, eax
test esi, esi
je 0x36a58b5
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x36a58ad
movzx edx, word [ebx]
test dx, dx
je 0x36a58ad
mov eax, edx
mov edx, 0x5c
shr eax, 1
cmp dx, word [ecx + eax*2 - 2]
je 0x36a58ad
push ebx
lea ecx, [esp + 0x74]
call fcn.036c0140
push 0x100f8728
lea ecx, [esp + 0x74]
call fcn.036c0460
mov esi, dword [0x1011f340]
lea eax, [esp + 0x50]
push 8
push eax
call dword [0x1011f44c]
push 0x4021
lea eax, [esp + 0x74]
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x2c], eax
lea ecx, [esi + 0x5dc]
push 3
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], edi
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0x40
push eax
push 0x100001
lea eax, [esp + 0x20]
mov dword [esp + 0x44], edi
push eax
mov eax, dword [esi + 0x5dc]
mov dword [esp + 0x4c], edi
call dword [eax + 0x24]
call eax
mov ecx, dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x78]
cmp eax, ecx
je 0x36a58ad
call fcn.03707920
test esi, esi
jne 0x36a5a89
mov edi, 0x400
xor ebx, ebx
lea esp, [esp]
test ebx, ebx
je 0x36a58cb
mov ecx, ebx
call fcn.03707920
mov ecx, edi
call fcn.03707780
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov esi, dword [0x1011f340]
push 8
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [0x1011f348]
push 0
lea eax, [esp + 0x64]
push eax
push 1
push 3
push edi
push ebx
lea eax, [esp + 0x80]
push eax
mov eax, dword [esi + 0x9fc]
lea ecx, [esi + 0x9fc]
push 0
push 0
push 0
push dword [esp + 0x34]
call dword [eax + 0x24]
call eax
cmp eax, 0xc0000004
je 0x36a5950
cmp eax, 0x80000005
je 0x36a5950
cmp eax, 0xc0000023
je 0x36a5950
test eax, eax
jne 0x36a5a7c
cmp dword [esp + 0x6c], eax
jne 0x36a595b
add edi, 0x100
jmp 0x36a58c0
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 0x3c]
and esi, 0xfffffffe
mov word [esp + 0x10], si
cmp word [edi + 2], si
jae 0x36a59a2
movzx ecx, si
and ecx, 0x800000ff
jns 0x36a5982
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, edi
add eax, 0x100
mov word [edi + 2], ax
movzx eax, ax
push eax
push dword [edi + 4]
call fcn.036c00d0
mov dword [edi + 4], eax
movzx eax, si
push eax
lea eax, [ebx + 0x5e]
mov word [edi], si
push eax
push dword [edi + 4]
call dword [0x1011f348]
mov al, byte [ebx + 0x44]
test al, al
jle 0x36a5a17
mov edi, dword [ebp + 0xc]
lea ecx, [ebx + 0x46]
movsx esi, al
and esi, 0xfffffffe
mov word [esp + 0x10], si
cmp word [edi + 2], si
jae 0x36a5a0a
movzx ecx, si
and ecx, 0x800000ff
jns 0x36a59e7
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, edi
add eax, 0x100
movzx eax, ax
push eax
push dword [edi + 4]
mov word [edi + 2], ax
call fcn.036c00d0
mov dword [edi + 4], eax
lea ecx, [ebx + 0x46]
movzx eax, si
push eax
push ecx
push dword [edi + 4]
mov word [edi], si
jmp 0x36a5a67
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp word [esi + 2], ax
jae 0x36a5a5c
movzx ecx, ax
and ecx, 0x800000ff
jns 0x36a5a3c
dec ecx
or ecx, 0xffffff00
inc ecx
sub eax, ecx
mov ecx, esi
add eax, 0x100
movzx eax, ax
push eax
push dword [esi + 4]
mov word [esi + 2], ax
call fcn.036c00d0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov word [esi], ax
movzx eax, ax
push eax
push edi
push dword [esi + 4]
call dword [0x1011f348]
mov eax, dword [ebp + 0x10]
mov edi, 1
mov ecx, dword [ebx + 0x38]
mov dword [eax], ecx
jmp 0x36a5a7e
xor edi, edi
test ebx, ebx
je 0x36a5a89
mov ecx, ebx
call fcn.03707920
mov eax, dword [esp + 0xc]
test eax, eax
je 0x36a5ac1
cmp eax, 0xffffffff
je 0x36a5ac1
mov ecx, dword [0x1011f340]
push eax
test ecx, ecx
je 0x36a5abb
mov edx, dword [ecx + 0x72c]
add ecx, 0x72c
call dword [edx + 0x24]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x100f5250]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret