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

Disassembly:
sub esp, 0xe4
mov eax, dword [0x214f450]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xe8]
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [ebx + 0xb8]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0xffffffff
call fcn.1003c5c0
mov dword [esp + 0x18], eax
test eax, eax
jge 0x1005d860
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.10072850
add esp, 0xe4
ret
mov eax, ebx
call fcn.1003c540
mov dword [esp + 0x2c], eax
test eax, eax
jl 0x1005d845
lea esi, [edi + 0xb8]
mov eax, 0x214c1cc
call fcn.1003d060
test eax, eax
je 0x1005d845
mov eax, dword [esi]
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx + 0xc]
push 4
lea edx, [esp + 0x34]
push edx
mov edx, dword [eax + 0x258]
mov eax, dword [eax + 0x254]
push edx
push eax
push edi
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1005d845
mov eax, dword [edi + 0xbc]
mov esi, dword [esp + 0x30]
sub esi, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
call fcn.1003c5c0
mov dword [esp + 0x28], eax
test eax, eax
jl 0x1005d845
xor eax, eax
mov edx, 0x14
mov word [esp + 0x3c], dx
mov word [esp + 0x3e], ax
mov ecx, 6
mov edx, 0x17
mov eax, 0x10
mov word [esp + 0x40], cx
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
mov ecx, 0x16
mov edx, 4
mov eax, 3
mov word [esp + 0x4c], cx
mov word [esp + 0x54], dx
mov word [esp + 0x56], ax
xor ecx, ecx
mov edx, 8
mov eax, 7
push 0x300
mov dword [esp + 0x3c], 0x214c1dc
mov dword [esp + 0x48], 0x214c1f4
mov dword [esp + 0x54], 0x214c20c
mov word [esp + 0x5c], cx
mov dword [esp + 0x60], 0x214c214
mov word [esp + 0x64], dx
mov word [esp + 0x66], ax
mov word [esp + 0x68], cx
call fcn.100729b6
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1005dbd3
mov ecx, dword [edi + 0x20]
push 0x300
push eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffd00
cdq
push edx
mov edx, dword [ecx + 0xc]
push eax
push edi
call edx
add esp, 0x14
cmp eax, 0x300
jne 0x1005db9f
xor esi, esi
lea ebp, [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
push 0x300
push eax
movsx eax, word [ebp + 4]
call fcn.10006030
mov ebx, eax
add esp, 8
test ebx, ebx
jg 0x1005d9c9
inc esi
add ebp, 0xc
cmp esi, 2
jb 0x1005d9a1
cmp esi, 2
je 0x1005db9f
mov eax, dword [esp + 0x20]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
movsx ecx, word [esp + esi + 0x3e]
mov edx, ebx
sub edx, ecx
mov eax, dword [edx + eax]
mov edx, dword [edi + 0xb8]
xor ecx, ecx
add eax, dword [edx + 0x25c]
push 4
adc ecx, dword [edx + 0x260]
mov edx, dword [edi + 0x20]
lea ebp, [esp + 0x28]
push ebp
push ecx
push eax
mov eax, dword [edx + 0xc]
push edi
call eax
add esp, 0x14
cmp eax, 4
jne 0x1005db9f
movsx ecx, word [esp + esi + 0x40]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0xbc]
sub ebx, ecx
add esi, dword [ebx + edx]
mov dword [esp + 0x24], esi
sub esi, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
call fcn.1003c540
mov dword [esp + 0x24], eax
test eax, eax
jl 0x1005db9f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x198]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
mov edx, dword [ecx + 0x14]
add edx, dword [ecx + 0x10]
sub edx, eax
mov dword [esp + 0x34], edx
js 0x1005db9f
mov eax, dword [edi + 0xb8]
mov edx, dword [eax + 0x254]
mov eax, dword [eax + 0x258]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx + 0xc]
push 4
add edx, 0xc
push ebp
adc eax, 0
push eax
push edx
push edi
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1005db9f
mov ecx, dword [ebp]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + 0xc]
push 0x50
lea eax, [esp + 0x9c]
push eax
push 0
push ecx
push edi
call edx
add esp, 0x14
cmp eax, 0x50
jne 0x1005db9f
xor esi, esi
lea ebx, [esp + 0x50]
mov ecx, dword [ebx]
lea eax, [esp + 0x98]
push 0x50
push eax
movsx eax, word [ebx + 4]
call fcn.10006030
add esp, 8
test eax, eax
jg 0x1005dafa
inc esi
add ebx, 0xc
cmp esi, 2
jb 0x1005dad5
cmp esi, 2
je 0x1005db9f
lea ecx, [esi + esi*2]
movsx edx, word [esp + ecx*4 + 0x56]
mov esi, dword [ebp]
sub esi, edx
add esi, eax
mov eax, esi
cdq
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
push edi
call edx
lea ebx, [esi + 2]
mov eax, ebx
cdq
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], edx
mov edx, dword [eax + 4]
push edi
mov dword [esp + 0x38], ebx
call edx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push 0
push 0
push edi
call ecx
mov edx, dword [edi + 0x24]
mov ecx, dword [edx + 8]
add esp, 0x1c
cmp eax, 0x1001
lea eax, [esp + 0x68]
push eax
push edi
je 0x1005dbef
call ecx
mov edx, dword [edi + 0x24]
mov ecx, dword [edx + 8]
lea eax, [esp + 0x88]
push eax
push edi
call ecx
add esp, 0x10
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push edx
call fcn.1007285f
add esp, 4
cmp dword [esp + 0x14], 0
jne 0x1005dbd3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10072850
add esp, 0xe4
ret
call ecx
mov edx, dword [edi + 0x24]
mov ecx, dword [edx + 8]
lea eax, [esp + 0x88]
push eax
push edi
call ecx
mov eax, dword [edi + 0xb8]
add esp, 0x10
cmp dword [eax + 0x2b4], esi
jne 0x1005dcaf
mov ebp, dword [eax + 0x23c]
mov eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x198]
cmp ebp, dword [ecx + edx*8 + 0x10]
jge 0x1005dba3
push ebp
call fcn.100729b6
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [edx + 4], eax
test eax, eax
je 0x1005dba3
mov ebx, dword [edi + 0xb8]
mov eax, dword [edi + 0xbc]
mov esi, dword [ebx + 0x264]
sub esi, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
call fcn.1003c5c0
test eax, eax
jl 0x1005dba3
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x268]
mov eax, dword [edi + 0x20]
push ebp
push ecx
mov ecx, dword [ebx + 0x264]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edi
call edx
add esp, 0x14
cmp eax, ebp
jne 0x1005dba3
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
jmp 0x1005dcb3
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0xb8]
cmp dword [eax + 0x2b4], ebx
jne 0x1005dba3
lea ecx, [esp + 0x98]
push 0x50
push ecx
mov eax, 0xa
mov ecx, 0x214c220
mov dword [esp + 0x1c], 1
call fcn.10006030
add esp, 8
test eax, eax
jl 0x1005dba3
mov esi, dword [esp + eax + 0x90]
mov eax, dword [edi + 0xb8]
mov edx, dword [edi + 0x20]
mov ecx, dword [edx + 0xc]
xor ebx, ebx
add esi, dword [eax + 0x25c]
push 4
adc ebx, dword [eax + 0x260]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push edi
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1005dba3
cmp dword [esp + 0x18], 1
jne 0x1005dba3
push 0x400
call fcn.100729b6
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edx + 4], eax
test eax, eax
je 0x1005dba3
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0xc]
push 0x400
push eax
add esi, 4
adc ebx, 0
push ebx
push esi
push edi
call edx
add esp, 0x14
cmp eax, 0x400
jne 0x1005dba3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x10]
cdq
push edx
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
call fcn.1005d750
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x1005dba3
mov dword [esp + 0x14], 0
jmp 0x1005dba3