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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
test esi, esi
je 0x364babb
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ebx, dword [esp + 0x6c]
lea eax, [esp + 0x28]
push 0x100f7c80
push eax
mov edi, dword [ebx + 8]
call dword [0x1011f448]
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
call fcn.036b7300
mov dword [ebx + 8], edi
test eax, eax
je 0x364be05
push 0x100f7c80
lea eax, [esp + 0x3c]
mov dword [esp + 0x70], 0
push eax
call dword [0x1011f448]
mov eax, dword [esp + 0x38]
mov ecx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
call fcn.036b7300
test eax, eax
je 0x364bc7b
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x364bb58
cmp eax, 0xffffffff
je 0x364bb58
push eax
call dword [0x100f5250]
mov ecx, dword [esp + 0x6c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x6c], ecx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x20]
sub ecx, eax
mov dword [esp + 0x24], eax
mov ax, word [esp + 0x18]
sar ecx, 1
shr ax, 1
add cx, ax
mov dword [esp + 0x50], 0x18
add cx, cx
mov dword [esp + 0x54], 0
mov word [esp + 0x20], cx
lea eax, [esp + 0x20]
mov word [esp + 0x22], cx
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x60], 0x40
lea ecx, [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [edx]
push 0x2000000
push ecx
mov ecx, edx
call dword [eax + 0x50]
test eax, eax
jne 0x364bc7b
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], eax
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov edi, eax
test edi, edi
je 0x364bc3d
cmp edi, 1
jne 0x364bcb5
mov eax, dword [esp + 0x70]
test eax, eax
je 0x364bc01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x2c]
lea edx, [esp + 0x70]
push edx
push dword [esp + 0x84]
mov dword [esp + 0x78], 0
lea edx, [esp + 0x20]
mov eax, dword [ecx]
push 0
push edx
push esi
call dword [eax + 0x7c]
mov edi, eax
test edi, edi
jne 0x364bcb5
push dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
push esi
call fcn.0364c7a0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [esp + 0x70]
test esi, esi
je 0x364bc67
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x364bc67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x70], 0
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.036b7300
test eax, eax
jne 0x364bb35
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
test edi, edi
je 0x364bcea
cmp edi, 0xffffffff
je 0x364bcea
mov ecx, 0x14
call fcn.036681f0
test eax, eax
je 0x364bcda
push 2
push edi
mov ecx, eax
call fcn.03675da0
mov edi, eax
test edi, edi
je 0x364bcdc
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
jmp 0x364bcdc
mov eax, dword [esp + 0x70]
and edi, 0xefffffff
test eax, eax
je 0x364bde3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x70], 0
jmp 0x364bde3
xor edi, edi
mov dword [esp + 0x84], 0
mov dword [ebp], edi
mov edi, dword [ebx + 8]
lea eax, [esp + 0x40]
push 0x100f7c80
push eax
call dword [0x1011f448]
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
call fcn.036b7300
mov dword [ebx + 8], edi
test eax, eax
je 0x364bd2a
mov edi, 0xc0000034
jmp 0x364bde3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 3
push dword [esp + 0x80]
mov ecx, dword [ecx + 0x2c]
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], 0
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov edi, eax
test edi, edi
je 0x364bd60
and edi, 0xefffffff
jmp 0x364bdcd
push dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
push esi
call fcn.0364c7a0
mov ebx, dword [esp + 0x10]
mov ecx, 0x18
call fcn.036681f0
mov edi, eax
test edi, edi
je 0x364bdc6
mov dword [edi], 0x10107890
mov dword [edi + 4], 0x10114868
mov dword [edi + 8], 0
mov dword [edi], 0x101078b8
mov dword [edi + 4], 0x101078a8
mov dword [edi + 0xc], ebx
test ebx, ebx
je 0x364bdb0
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 1
mov eax, dword [edi]
push edi
call dword [eax + 4]
jmp 0x364bdc8
xor edi, edi
mov dword [ebp], edi
xor edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x364bde3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x364be2b
cmp eax, 0xffffffff
je 0x364be2b
push eax
call dword [0x100f5250]
test eax, eax
je 0x364be2b
mov dword [esp + 0x6c], 0
jmp 0x364be2b
push 2
push dword [esp + 0x80]
mov edx, esi
lea ecx, [esp + 0x7c]
call fcn.03675ba0
mov ecx, dword [esp + 0x8c]
add esp, 8
mov eax, dword [esp + 0x74]
xor edi, edi
mov dword [ecx], eax
test esi, esi
je 0x364be35
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c