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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebp, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ecx
mov eax, ebp
mov dword [esp + 0x18], edi
sub eax, edi
cmp eax, 0x40
jle 0x489858
test ecx, ecx
je 0x489895
lea edi, [esp + 0x68]
mov dword [esp + 0x24], edi
lea edi, [esp + 0x40]
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x18]
sar eax, 3
mov esi, dword [ebp - 4]
sub dword [esp + 0x1c], 1
lea edi, [ecx + 4]
mov eax, dword [ecx + eax*4]
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x20], edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x20]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
cmp edx, eax
jbe 0x489863
cmp ebx, eax
jb 0x48986f
cmp ebx, edx
jae 0x489884
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.00568540
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp - 4]
mov edi, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [ebx + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], edx
lea esi, [esi]
mov esi, dword [edi]
mov ecx, edi
cmp dword [esi + 0x20], eax
ja 0x489667
cmp eax, dword [esp + 0x10]
lea edx, [ebp - 4]
jbe 0x489670
lea edx, [ebp - 8]
lea esi, [esi]
mov ebx, dword [edx]
mov ebp, edx
sub edx, 4
cmp dword [ebx + 0x20], eax
jb 0x4894b0
cmp ebp, edi
jbe 0x489680
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x68], eax
movzx eax, word [esi + 8]
mov dword [esp + 0x6c], edx
mov word [esp + 0x70], ax
mov eax, dword [esi + 0xa]
mov dword [esp + 0x72], eax
movzx eax, word [esi + 0xe]
mov word [esp + 0x76], ax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x78], eax
movzx eax, word [esi + 0x14]
mov word [esp + 0x7c], ax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [0x60fce4]
mov dword [esi + 0x18], eax
movzx eax, byte [esi + 0x1c]
mov byte [esp + 0x84], al
movzx eax, byte [esi + 0x1d]
mov byte [esp + 0x85], al
mov eax, dword [esi + 0x20]
mov edx, dword [ebx + 4]
mov dword [esp + 0x88], eax
movzx eax, word [esi + 0x24]
mov word [esp + 0x8c], ax
movzx eax, word [esi + 0x26]
mov word [esp + 0x8e], ax
mov eax, dword [ebx]
mov dword [esi + 4], edx
mov dword [esi], eax
movzx eax, word [ebx + 8]
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x14]
mov word [esi + 8], ax
mov eax, dword [ebx + 0xa]
mov dword [esi + 0xa], eax
movzx eax, word [ebx + 0xe]
mov word [esi + 0xe], ax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
movzx eax, word [ebx + 0x14]
mov word [esi + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [ebx + 0x1c]
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x1c], al
movzx eax, byte [ebx + 0x1d]
mov byte [esi + 0x1d], al
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x20], eax
movzx eax, word [ebx + 0x24]
mov word [esi + 0x24], ax
movzx eax, word [ebx + 0x26]
mov word [esi + 0x26], ax
mov eax, dword [esp + 0x68]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x80]
mov dword [ebx], eax
movzx eax, word [esp + 0x70]
mov word [ebx + 8], ax
mov eax, dword [esp + 0x72]
mov dword [ebx + 0xa], eax
movzx eax, word [esp + 0x76]
mov word [ebx + 0xe], ax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x10], eax
movzx eax, word [esp + 0x7c]
mov word [ebx + 0x14], ax
mov eax, dword [0x60fce4]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], edx
mov dword [esp + 0x40], eax
call fcn.00543e50
movzx eax, byte [esp + 0x84]
lea ecx, [esp + 0x80]
mov byte [ebx + 0x1c], al
movzx eax, byte [esp + 0x85]
mov byte [ebx + 0x1d], al
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x20], eax
movzx eax, word [esp + 0x8c]
mov word [ebx + 0x24], ax
movzx eax, word [esp + 0x8e]
mov word [ebx + 0x26], ax
call fcn.00543e50
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
add edi, 4
jmp 0x489490
mov ebp, edx
cmp ebp, edi
ja 0x4894c4
lea esi, [esi]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], edi
mov eax, dword [esi]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 0xb0]
mov byte [esp], al
mov eax, dword [esp + 0x14]
call fcn.004893e0
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, ecx
cmp eax, 0x40
jle 0x489858
mov edx, dword [esp + 0x1c]
mov ebp, edi
test edx, edx
jne 0x489423
sar eax, 2
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
sub eax, 2
sar eax, 1
mov esi, eax
jmp 0x4896fc
lea ecx, [esp + 0x58]
sub esi, 1
call fcn.00543e50
mov eax, dword [edi + esi*4]
mov edx, dword [eax + 0xa]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
movzx ebp, word [eax + 8]
mov dword [esp + 0x4a], edx
movzx edx, word [eax + 0xe]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x60fce4]
mov word [esp + 0x48], bp
mov dword [esp + 0x44], ebx
mov word [esp + 0x4e], dx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x50], edx
movzx edx, word [eax + 0x14]
mov word [esp + 0x54], dx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x58], edx
mov dword [eax + 0x18], ecx
movzx ecx, byte [eax + 0x1c]
mov byte [esp + 0x5c], cl
movzx ebx, byte [eax + 0x1d]
mov byte [esp + 0x10], cl
mov byte [esp + 0x5d], bl
movzx edx, word [eax + 0x24]
mov ecx, dword [eax + 0x20]
mov word [esp + 0x8c], dx
mov word [esp + 0x64], dx
movzx edx, word [eax + 0x26]
mov dword [esp + 0x60], ecx
mov word [esp + 0x8e], dx
mov word [esp + 0x66], dx
mov eax, dword [esp + 0x40]
mov word [esp + 0x70], bp
mov ebp, dword [esp + 0x4a]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [0x60fce4]
mov dword [esp + 0x72], ebp
movzx ebp, word [esp + 0x4e]
mov dword [esp + 0x6c], edx
mov edx, esi
mov byte [esp + 0x85], bl
mov dword [esp + 0x3c], edi
mov word [esp + 0x76], bp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x78], ebp
movzx ebp, word [esp + 0x54]
mov word [esp + 0x7c], bp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x58], eax
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x80], ebp
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x24]
mov dword [esp], eax
lea eax, [esp + 0x3c]
call fcn.00488cc0
lea ecx, [esp + 0x80]
call fcn.00543e50
test esi, esi
jne 0x4896f0
lea ecx, [esp + 0x58]
call fcn.00543e50
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
sub ebx, 4
lea ecx, [esp + 0x3c]
mov eax, edi
mov edx, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], esi
call fcn.00488fb0
mov eax, ebx
sub ebx, 4
sub eax, esi
cmp eax, 4
jg 0x489833
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, edx
jb 0x489884
cmp ebx, eax
jb 0x489466
mov eax, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00568540
jmp 0x489472
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.00568540
jmp 0x489472
lea edi, [esp + 0x68]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
lea edi, [esp + 0x40]
mov dword [esp + 0x14], edi
jmp 0x4896d7