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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 8], edi
mov esi, 0xfff0bdc0
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 4], eax
add eax, 2
mov dword [ebx + 0x44], eax
mov edx, dword [edi + 0x18]
mov eax, dword [ebx]
test edx, edx
je 0x1005a77e
mov ecx, dword [eax + 0x14]
xor esi, esi
test ecx, ecx
jle 0x1005a77e
mov eax, dword [eax + 0x10]
add eax, 0xc
nop
cmp dword [eax], edx
je 0x1005a77c
inc esi
add eax, 0x10
cmp esi, ecx
jl 0x1005a770
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov ecx, esi
add ecx, ecx
mov edx, 0x1b
push dword [eax + ecx*8]
mov ecx, ebx
push 0
push dword [edi]
call fcn.10056730
add esp, 0xc
test eax, eax
jne 0x1005ab12
mov eax, dword [ebp - 0x10]
mov edx, esi
mov ecx, ebx
push dword [eax]
push 1
push dword [eax + 0x1c]
call fcn.100567c0
mov edi, dword [ebx + 8]
add esp, 0xc
test edi, edi
jne 0x1005a7f9
mov ecx, ebx
call fcn.10038bf0
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x1005a7dc
mov edx, 0x9f
mov ecx, edi
call fcn.10038e90
cmp dword [ebx + 0x19c], 0
jne 0x1005a7f1
mov eax, dword [ebx]
test byte [eax + 0x3c], 8
jne 0x1005a7f1
mov byte [ebx + 0x17], 1
test edi, edi
je 0x1005ab12
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
test eax, eax
jns 0x1005a806
mov eax, dword [edx + 0x2c]
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.1005cc90
mov edx, dword [ebx + 0x44]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], edx
lea ecx, [edx + 1]
mov dword [ebx + 0x44], ecx
test eax, eax
je 0x1005a825
inc dword [eax]
push 0xfffffffffffffffa
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
movzx eax, word [eax + 0x32]
push eax
push 0
push edx
mov edx, 0x3b
call fcn.10039210
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov edx, dword [ebp - 4]
mov ecx, ebx
push 0x37
push eax
push esi
call fcn.100649d0
add esp, 0xc
mov edx, 0x6e
mov ecx, edi
push 0
push dword [ebp - 4]
call fcn.10038f70
mov cl, byte [ebx + 0x13]
add esp, 8
mov dword [ebp - 0x1c], eax
test cl, cl
jne 0x1005a87c
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
jmp 0x1005a888
dec cl
movzx eax, cl
mov byte [ebx + 0x13], cl
mov eax, dword [ebx + eax*4 + 0x18]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x18]
push 0
push 0
push ecx
push 0
push eax
push dword [ebp - 4]
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.1005ebf0
push dword [ebp - 0x10]
mov edx, 0x6f
mov ecx, edi
push dword [ebp - 0xc]
call fcn.10038f70
add esp, 0x20
cmp dword [ebp - 0x18], 0
je 0x1005a8f0
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1005a8df
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edx + 0x20]
mov dword [ecx], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x24]
dec eax
mov dword [ecx + 0x5c], eax
mov ecx, ebx
call fcn.1004ffd0
mov eax, dword [ebp - 0x1c]
mov edx, 8
inc eax
mov ecx, edi
push eax
push dword [ebp - 4]
call fcn.10038f70
mov ecx, dword [edi + 0x20]
add esp, 8
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x1005a91e
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x41], 0
je 0x1005a92d
mov eax, 0x102004bc
jmp 0x1005a936
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
cmp dword [ebp + 8], 0
mov dword [eax + 8], edx
jge 0x1005a952
push esi
push dword [ebp - 0x14]
mov edx, 0x78
mov ecx, edi
call fcn.10038f70
add esp, 8
mov eax, dword [ebp - 4]
mov edx, 0x38
push 0xfffffffffffffffa
push dword [ebp - 0x20]
inc eax
mov ecx, edi
push esi
push dword [ebp - 0x14]
push eax
call fcn.10039210
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 0x41], 0
jne 0x1005a995
cmp dword [ebp + 8], 0
mov eax, 0x11
mov edx, 1
cmovge edx, eax
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], dl
push 0
push dword [ebp - 0xc]
mov edx, 0x6c
mov ecx, edi
call fcn.10038f70
mov dword [ebp - 0x24], eax
add esp, 8
mov eax, dword [ebp - 8]
cmp byte [eax + 0x36], 0
je 0x1005a9ff
cmp dword [ebp - 0x20], 0
je 0x1005a9ff
mov esi, dword [edi + 0x20]
mov ecx, edi
add esi, 3
mov edx, esi
call fcn.10038fe0
mov eax, dword [edi + 0x20]
mov edx, 0x65
mov dword [ebp - 0x20], eax
mov ecx, edi
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x32]
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call fcn.10039350
push dword [ebp - 8]
mov edx, 2
mov ecx, ebx
call fcn.1005c740
add esp, 0x14
jmp 0x1005aa05
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov edx, 0x66
mov esi, dword [ebp - 0x10]
inc eax
push eax
push esi
push dword [ebp - 0xc]
mov ecx, edi
call fcn.10038e20
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov edx, 0x6b
mov ecx, edi
push 0xffffffffffffffff
push 0
push eax
call fcn.10038e20
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov edx, 0x70
mov ecx, edi
push 0
push esi
push eax
call fcn.10038e20
mov eax, dword [edi]
add esp, 0xc
cmp byte [eax + 0x41], 0
jne 0x1005aa65
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x10
test esi, esi
je 0x1005aa94
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x1005aa94
xor ecx, ecx
lea eax, [ebx + 0x78]
cmp dword [eax + 0xc], esi
je 0x1005aa90
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1005aa76
movzx eax, dl
mov dword [ebx + eax*4 + 0x18], esi
inc byte [ebx + 0x13]
jmp 0x1005aa94
mov byte [eax + 6], 1
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, 4
push ebx
mov ecx, edi
call fcn.10038f70
mov ecx, dword [edi + 0x20]
add esp, 8
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x1005aac1
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x41], 0
je 0x1005aad0
mov eax, 0x102004bc
jmp 0x1005aad9
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov esi, dword [ebp - 4]
mov ecx, edi
mov dword [eax + 8], edx
mov edx, 0x3e
push esi
call fcn.10038f00
add esp, 4
lea eax, [esi + 1]
mov edx, 0x3e
mov ecx, edi
push eax
call fcn.10038f00
add esp, 4
mov edx, 0x3e
mov ecx, edi
push ebx
call fcn.10038f00
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret