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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], edi
test ebx, ebx
jns 0x489b4e
cmp dword [edx + 0x104], esi
je 0x489b4e
cmp dword [edx + 0x118], eax
jne 0x489b4e
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x48], esi
jne 0x489b0b
cmp dword [esp + 0x4c], esi
jne 0x489b0b
xor eax, eax
jmp 0x489b10
mov eax, 1
lea esi, [esp + 0x3c]
push esi
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push ecx
push edx
call fcn.004ba070
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x489b42
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x489b42
push eax
push ebp
call fcn.00489ef0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp ebx, 0xffffffff
je 0x489e9c
test esi, esi
jne 0x489e9c
lea esi, [esp + 0x10]
push esi
push ebx
push ecx
push eax
push edx
call fcn.004b6950
mov edi, dword [esp + 0x24]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x489e9c
push edi
mov ebx, 4
call fcn.00466d00
mov esi, eax
add esp, 4
cmp esi, 0x64
jne 0x489e9c
push 1
push edi
mov dword [esp + 0x44], 0
call fcn.00467600
push 2
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call fcn.00467600
push 3
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call fcn.00467600
push ebx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
call fcn.00468520
add esp, 0x20
mov dword [esp + 0x10], eax
test edi, edi
je 0x489c20
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x489bf4
push eax
call dword [0x52e328]
add esp, 4
mov esi, dword [edi + 0x78]
test esi, esi
je 0x489c0c
cmp bx, word [edi + 0x90]
jae 0x489c0c
add esi, 0xa0
jmp 0x489c25
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.004af340
add esp, 8
mov esi, 0x523800
movzx ecx, word [esi + 8]
test cl, 0x12
je 0x489c89
test ecx, 0x4000
je 0x489c79
mov eax, dword [esi + 0xc]
add eax, dword [esi]
test eax, eax
jg 0x489c49
test cl, 0x10
je 0x489c79
mov eax, 1
push 1
push eax
push esi
call fcn.004ddd30
add esp, 0xc
test eax, eax
jne 0x489ca7
push dword [esi]
push eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
add dword [esi + 0xc], eax
mov eax, 0xbdff
and word [esi + 8], ax
or word [esi + 8], 0x10
cmp dword [esi + 0xc], 0
je 0x489ca7
mov ebx, dword [esi + 0x10]
jmp 0x489cb8
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x489ca2
cmp byte [esi + 0xa], 1
jne 0x489ca2
mov ebx, dword [esi + 0x10]
jmp 0x489cb8
test cl, 1
je 0x489cab
xor ebx, ebx
jmp 0x489cb8
push 1
push esi
call fcn.004ed100
add esp, 8
mov ebx, eax
test edi, edi
je 0x489cf5
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
cmp byte [eax + 0x51], 0
jne 0x489cd6
cmp ecx, 0xc0a
je 0x489cd6
mov eax, dword [eax + 0x44]
and eax, ecx
jmp 0x489cdf
push eax
call fcn.0046c7b0
add esp, 4
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x489cf5
push eax
call dword [0x52e330]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x20]
or eax, edx
je 0x489dfb
mov esi, dword [esp + 0x40]
test esi, esi
je 0x489dfb
test ebx, ebx
je 0x489dfb
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
and eax, ecx
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x54]
push esi
push dword [esp + 0x48]
call fcn.0048b320
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x489e9c
cmp dword [esp + 0x48], eax
jne 0x489d70
cmp dword [esp + 0x4c], eax
jne 0x489d70
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 1]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jmp 0x489d7a
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea esi, [esp + 0x3c]
push esi
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push ecx
push eax
mov eax, dword [ebp + 4]
inc eax
push eax
call fcn.004b9f50
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x489e9c
mov ecx, dword [ebp + 4]
mov eax, ecx
and eax, 0x8000000f
jns 0x489dbf
dec eax
or eax, 0xfffffff0
inc eax
jne 0x489de6
mov ebx, dword [ebp]
lea esi, [ecx*4 + 0x40]
call fcn.004e9d50
test eax, eax
jne 0x489e1b
push eax
push esi
push ebx
call fcn.004c9de0
add esp, 0xc
test eax, eax
je 0x489e1b
mov dword [ebp], eax
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*4], eax
inc dword [ebp + 4]
jmp 0x489b7e
cmp dword [esp + 0x48], 0
jne 0x489d78
cmp dword [esp + 0x4c], 0
jne 0x489d78
mov eax, 1
jmp 0x489d7a
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x489e8e
cmp dword [esi + 0x38], 0
jne 0x489e34
push dword [esi + 0x40]
call fcn.0045d750
add esp, 4
cmp byte [esi + 5], 0
jne 0x489e45
push dword [esi + 0x28]
call fcn.0045d750
add esp, 4
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x489e8e
mov ebp, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x489e67
push eax
call dword [0x52e328]
add esp, 4
push ebx
push ebp
call fcn.004ad230
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x489e82
push eax
call dword [0x52e330]
add esp, 4
push dword [esp + 0x3c]
call fcn.004687c0
add esp, 4
push esi
call fcn.0045d750
add esp, 4
mov esi, 7
push edi
call fcn.00468940
add esp, 4
cmp esi, 0x65
je 0x489eac
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret