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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
je 0x5c4a6d
cmp ebx, 0xffff0000
je 0x5c4a6d
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [eax + 0x64]
push ebx
call dword [0x5f3fa2d8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x5c4a6d
push 0x200
call fcn.005efd1b
mov esi, eax
pop ecx
test esi, esi
je 0x5c4a6d
push 0xa
pop ecx
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x94], ebx
push eax
mov eax, dword [esp + 0x10]
mov edx, 0x100
push 0
push 0x113e
mov dword [esp + 0x20], edx
push dword [eax + 0x84]
mov dword [esp + 0xa0], 1
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], edx
call dword [0x5f3fa8f4]
mov edi, dword [esp + 0x10]
cmp dword [edi], 0
jne 0x5c492f
mov eax, dword [esp + 0xc]
push ebx
push 3
push 0x110a
push dword [eax + 0x84]
call dword [0x5f3fa8f4]
push 0xa
mov edx, eax
lea edi, [esp + 0x24]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x113e
mov dword [esp + 0x2c], 4
push dword [eax + 0x84]
call dword [0x5f3fa8f4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5c4a66
mov edi, dword [esp + 0x10]
push edi
push 0x20019
push 0
push dword [esp + 0xac]
push dword [eax]
call dword [0x5f3fa0c8]
test eax, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x113f
push dword [eax + 0x84]
je 0x5c4921
and dword [esp + 0x50], 0
mov dword [esp + 0x30], 0x40
jmp 0x5c4a60
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], edi
call dword [0x5f3fa8f4]
cmp byte [edi + 4], 0
jne 0x5c4a66
push 0x44
lea eax, [esp + 0x4c]
mov byte [edi + 4], 1
push 0
push eax
call fcn.005f1972
add esp, 0xc
mov dword [esp + 0x48], ebx
xor ecx, ecx
mov dword [esp + 0x4c], 0xffff0002
mov dword [esp + 0x50], 0x67
mov dword [esp + 0x70], ecx
push 0x19
pop eax
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x24]
push eax
push esi
push ecx
push dword [edi]
call dword [0x5f3fa00c]
test eax, eax
jne 0x5c4a4e
mov ebx, dword [esp + 0xc]
inc dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push esi
push dword [edi]
call dword [0x5f3fa0c8]
test eax, eax
jne 0x5c49e2
xor ecx, ecx
lea eax, [esp + 0x1c]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push dword [esp + 0x3c]
call dword [0x5f3fa02c]
test eax, eax
jne 0x5c49d6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
push dword [esp + 0x10]
call dword [0x5f3fa000]
jmp 0x5c49e7
and dword [esp + 0x70], 0
mov eax, dword [esp + 0x14]
push 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], esi
call fcn.005efce3
pop ecx
test eax, eax
je 0x5c4a06
and dword [eax], 0
mov byte [eax + 4], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0x1132
push dword [ebx + 0x84]
call dword [0x5f3fa8f4]
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x100
push eax
push esi
push ecx
push dword [edi]
call dword [0x5f3fa00c]
test eax, eax
je 0x5c4992
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
push ebx
push 0
push 0x1113
push dword [eax + 0x84]
call dword [0x5f3fa8f4]
push esi
call fcn.005efd11
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4