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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0xa4]
mov ebx, edx
push edi
mov dword [esp + 0x44], ecx
mov ebp, dword [esi]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], eax
movzx eax, word [ebp + 0x122]
cmp ecx, eax
jbe 0x1005e4c9
mov word [ebp + 0x122], cx
test byte [esi + 0x10], 1
mov dword [esi + 0x14], ebx
je 0x1005e4e4
mov dword [esp + 0x14], 0x10000
mov dword [esp + 0x28], 0x10000
jmp 0x1005e4f8
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x80]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x1005e578
mov eax, dword [ecx]
lea edx, [esp + 0x70]
mov ecx, dword [ecx + 4]
push edx
mov edx, ebx
mov eax, dword [eax]
call eax
test eax, eax
jne 0x1005ec05
mov ecx, dword [esp + 0x74]
xor edi, edi
mov eax, dword [esp + 0x70]
xorps xmm0, xmm0
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x78], eax
lea eax, [esi + 0x18]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x1b], 1
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [eax], ecx
jmp 0x1005e588
lea eax, [esi + 0x1c]
mov ecx, ebp
push eax
call fcn.10065cd0
mov edi, eax
lea eax, [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ecx
test edx, edx
jle 0x1005e5f9
mov ecx, dword [ebp + 0x2d0]
test ecx, ecx
jne 0x1005e5b6
mov eax, dword [ebp + 0x80]
cmp dword [eax + 0x34], ecx
jne 0x1005e5b6
lea edi, [ecx + 8]
jmp 0x1005ebe5
lea eax, [ecx + edi]
mov ecx, esi
push edx
push eax
mov eax, dword [ebp + 0x208]
mov edx, ebx
call eax
mov edi, eax
test edi, edi
jne 0x1005ebe5
mov eax, dword [ebp + 0x210]
mov ecx, esi
call eax
mov edi, eax
mov ecx, esi
mov eax, dword [ebp + 0x20c]
call eax
test edi, edi
jne 0x1005ebe5
lea ecx, [esi + 0x18]
mov dword [esp + 0x34], ecx
lea eax, [esi + 0x18]
cmp dword [esi + 0x1c], 0
je 0x1005e606
cmp word [esi + 0x20], 0
jne 0x1005e628
mov ecx, eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x34], ecx
mov eax, dword [ecx]
xor dl, dl
mov edi, dword [esi]
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov eax, dword [eax + 8]
push ecx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x40]
mov eax, dword [edi + 0x21c]
push ecx
push ebx
mov ecx, edi
mov eax, dword [eax + 0x8c]
call eax
lea eax, [esp + 0x2c]
mov edx, ebx
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push dword [esi + 0x30]
call fcn.1005d140
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x1005e79a
mov edx, dword [esp + 0x1c]
mov ecx, eax
push 0
push 0
call edi
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x55
test eax, eax
jne 0x1005ebe5
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
cmp byte [esi + 0x40], 0
movsx eax, word [esp + 0x3c]
movzx ecx, word [esp + 0x40]
mov dword [esi + 0x34], eax
movsx eax, word [esp + 0x20]
mov dword [esi + 0xac], eax
movzx eax, word [esp + 0x2c]
mov dword [esi + 0x38], ecx
mov dword [esi + 0xb0], eax
jne 0x1005e6f4
mov byte [esi + 0x40], 1
mov dword [esi + 0x3c], ecx
xor edi, edi
cmp byte [esp + 0xac], 0
jne 0x1005ebe5
cmp dword [esi + 0x1c], edi
je 0x1005eb5f
cmp word [esi + 0x20], di
je 0x1005eb5f
mov ecx, esi
call fcn.1005e400
mov edx, ebx
mov ecx, esi
call fcn.1005d1f0
mov eax, dword [esi + 0x1c]
mov edx, ebx
mov ecx, dword [esp + 0x24]
sub eax, 0xa
push eax
mov eax, dword [ebp + 0x2d0]
add ecx, 0xa
add eax, ecx
mov ecx, esi
push eax
mov eax, dword [ebp + 0x208]
call eax
mov edi, eax
test edi, edi
jne 0x1005ebe5
movzx eax, word [esi + 0x20]
test ax, ax
jle 0x1005e7b1
mov eax, dword [ebp + 0x214]
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jne 0x1005e825
mov eax, dword [ebp + 0x20c]
mov ecx, esi
call eax
mov ecx, esi
call fcn.1005ddc0
mov edi, eax
test edi, edi
jne 0x1005ebe5
mov ecx, dword [esp + 0x30]
call fcn.100314e0
jmp 0x1005ebe5
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jbe 0x1005e6be
mov edi, 0x55
jmp 0x1005ebe5
jns 0x1005e825
mov eax, dword [ebp + 0x64]
lea edi, [esi + 0xcc]
or ecx, 0xffffffff
mov dword [esp + 0x24], eax
mov word [esi + 0x20], cx
mov ecx, dword [esp + 0x44]
test edi, edi
je 0x1005e838
mov eax, dword [edi]
test eax, eax
je 0x1005e7e1
test ecx, ecx
je 0x1005e808
mov eax, dword [eax + 4]
dec ecx
test eax, eax
jne 0x1005e7d5
xor ecx, ecx
mov eax, edi
mov eax, dword [eax]
test eax, eax
je 0x1005e7fc
nop dword [eax + eax]
cmp dword [eax + 8], ebx
je 0x1005e820
mov eax, dword [eax + 4]
test eax, eax
jne 0x1005e7f0
test ecx, ecx
je 0x1005e834
mov dword [ecx + 8], ebx
jmp 0x1005e888
mov ecx, eax
test eax, eax
je 0x1005e7e3
nop
mov dword [eax + 8], 0xffffffff
mov eax, dword [eax + 4]
test eax, eax
jne 0x1005e810
jmp 0x1005e7e3
mov edi, 0x15
mov eax, dword [ebp + 0x20c]
mov ecx, esi
call eax
jmp 0x1005ebe5
mov eax, dword [esp + 0x24]
mov ecx, eax
mov edx, 0xc
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x1005e85a
lea edi, [eax + 0x40]
mov ecx, esi
mov eax, dword [ebp + 0x20c]
call eax
jmp 0x1005ebe5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], ebx
test edi, edi
je 0x1005e888
mov ecx, dword [edi + 4]
mov dword [eax + 4], 0
mov dword [eax], ecx
test ecx, ecx
je 0x1005e883
mov dword [ecx + 4], eax
jmp 0x1005e885
mov dword [edi], eax
mov dword [edi + 4], eax
mov ebx, dword [esp + 0x30]
mov ecx, esi
movsx eax, word [ebx + 0x16]
mov dword [esp + 0x1c], eax
movsx eax, word [ebx + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x218]
call eax
mov edi, eax
test edi, edi
jne 0x1005e825
mov eax, dword [esi + 0xa4]
mov ecx, esi
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x20c]
call eax
test byte [esi + 0x10], 1
jne 0x1005e93c
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x44]
call fcn.10028160
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x44], eax
call fcn.10028160
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0x4c], eax
call fcn.10028160
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb4], eax
call fcn.10028160
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0xb8], eax
call fcn.10028160
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xbc], eax
call fcn.10028160
mov dword [esi + 0xc0], eax
test dword [esi + 0x10], 0x400
je 0x1005e95b
mov ecx, ebx
call fcn.100314e0
mov eax, dword [esi + 8]
mov dword [eax + 0x48], 0x636f6d70
jmp 0x1005ebe5
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x64], eax
call fcn.100314e0
cmp dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
jbe 0x1005eae5
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
inc ecx
shl eax, 5
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x14], eax
mov edx, dword [ebx + 0x34]
add edx, eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
mov edx, dword [edx]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xbc]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xb0]
push 0
mov dword [esp + 0x58], eax
movsx eax, word [ebx + 0x16]
push ecx
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.1005e490
mov edi, eax
test edi, edi
jne 0x1005ebe5
mov eax, dword [ebx + 0x34]
mov ecx, 0x200
add eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
test word [eax + 4], cx
jne 0x1005ea9b
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xb4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xb8], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0xbc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xc0], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0xb0], ecx
movsx ecx, word [ebx + 0x16]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
cmp ecx, edx
je 0x1005eac3
push edx
push dword [esp + 0x20]
mov edx, eax
mov ecx, esi
call fcn.1005df90
mov edi, eax
test edi, edi
jne 0x1005ebe5
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x20
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
jb 0x1005e9b8
test byte [esi + 0x10], 2
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0xa4], eax
jne 0x1005eb3a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1005eb3a
mov ecx, 0x100
test word [eax + 4], cx
je 0x1005eb3a
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], eax
jbe 0x1005eb3a
push dword [esp + 0x6c]
mov edx, eax
mov ecx, esi
call fcn.1005e120
mov edi, eax
test edi, edi
jne 0x1005ebe5
cmp dword [ebx + 0x30], 0
je 0x1005ebe5
mov eax, dword [ebx + 0x34]
mov ecx, 0x400
test word [eax + 4], cx
je 0x1005ebe5
or dword [ebx + 0x24], 0x40
jmp 0x1005ebe5
mov ecx, esi
call fcn.1005e400
mov edx, ebx
mov ecx, esi
call fcn.1005d1f0
test byte [esi + 0x10], 1
jne 0x1005ebe3
mov ebx, dword [esp + 0x14]
mov edx, ebx
mov ecx, dword [esi + 0x44]
call fcn.10028160
mov ecx, dword [esi + 0x4c]
mov edx, ebx
mov dword [esi + 0x44], eax
call fcn.10028160
mov ecx, dword [esi + 0xb4]
mov edx, ebx
mov dword [esi + 0x4c], eax
call fcn.10028160
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb4], eax
call fcn.10028160
mov ecx, dword [esi + 0xbc]
mov edx, ebx
mov dword [esi + 0xb8], eax
call fcn.10028160
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xbc], eax
call fcn.10028160
mov dword [esi + 0xc0], eax
xor edi, edi
cmp byte [esp + 0x1b], 0
je 0x1005ec03
mov eax, dword [ebp + 0x80]
lea edx, [esp + 0x70]
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, dword [eax + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8