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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62cdfc
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.004394ae
test al, al
je 0x48a0e2
mov eax, dword [edi + 0x90]
shr eax, 9
test al, 1
jne 0x48a0e2
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
push 1
mov ecx, ebx
call 0x56ea8e
test eax, eax
je 0x489ba9
mov ecx, dword [eax]
test ecx, ecx
je 0x489b1d
mov ecx, dword [ecx + 4]
jmp 0x489b1f
xor ecx, ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
mov esi, dword [eax]
movzx eax, byte [esi]
test byte [eax + eax*2 + 0x405210], 0x40
je 0x489b01
test byte [esi + 0x79], 0x80
jne 0x489b01
mov ecx, esi
call 0x3e9c7e
movzx eax, byte [eax]
test byte [eax + eax*2 + 0x405210], 0x10
je 0x489b01
mov al, byte [esi + 0x78]
test al, 0x20
je 0x489b01
test al, 0x40
jne 0x489b01
mov eax, dword [esp + 0x28]
mov esi, dword [edi + 4]
test byte [eax + 0x1c], 4
jne 0x489b6b
mov eax, dword [eax + 8]
jmp 0x489b85
mov ecx, edi
call 0x3e0c1e
test eax, eax
je 0x489b83
cmp dword [eax + 0x4c], 0
jne 0x489b83
add eax, 0x1c4
jmp 0x489b85
xor eax, eax
test eax, eax
je 0x489ba9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
push 0x7ab3
push eax
call 0x3cd30e
add esp, 0x30
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
test edx, edx
je 0x48a0e2
push ecx
call fcn.0048a41e
test al, al
je 0x48a0e2
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push dword [eax + 4]
call fcn.0048a39e
mov dword [esp + 0x2a8], 0
xor ebx, ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x10], ebx
mov dword [eax], ebx
mov ecx, dword [esi + 8]
call fcn.0048a48e
test eax, eax
je 0x489c3c
mov esi, dword [eax]
test esi, esi
je 0x489c3c
mov edi, dword [esp + 0x20]
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.0043dbbe
test al, al
jne 0x489c26
push esi
call fcn.0048892e
test al, al
je 0x489c26
mov eax, dword [esp + 0x1c]
mov dword [eax + ebx*4], esi
inc ebx
mov ecx, dword [edi + 8]
call fcn.0048a48e
test eax, eax
je 0x489c38
mov esi, dword [eax]
test esi, esi
jne 0x489c03
mov edi, dword [esp + 0x14]
push 0x505c90
push 4
push ebx
push dword [esp + 0x28]
call dword [0x660320]
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.0041538e
mov byte [esp + 0x2a8], 1
push ecx
lea ecx, [esp + 0x170]
call fcn.0041538e
mov byte [esp + 0x2a8], 2
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x489ca9
cmp dword [eax + 0x60], 1
je 0x489ca1
cmp dword [eax + 0x4c], 1
jne 0x489ca9
lea edx, [eax + 0xb4]
jmp 0x489cab
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax + 0x860]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x489f10
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4]
call 0x3e9c7e
mov esi, eax
cmp dword [esp + 0x20], esi
je 0x489d3d
mov dword [esp + 0x20], esi
test esi, esi
je 0x489d35
mov ecx, esi
call 0x3db47e
test al, al
jne 0x489d10
mov ecx, esi
call 0x3da80e
test al, al
je 0x489d35
mov eax, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
push dword [eax]
lea eax, [esp + 0x38]
mov edx, dword [edx + esi*4]
push eax
call fcn.0042194e
mov ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x489d45
xor ecx, ecx
mov dword [esp + 0x24], ecx
jmp 0x489d41
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x14], eax
cmp byte [eax], 0xc
jne 0x489e27
push 0
push 0
push 0
push 1
push 0
push ecx
lea eax, [esp + 0x184]
mov ecx, edi
push eax
push edi
call 0x3e28ae
mov ecx, dword [esp + 0x34]
push eax
call 0x3dd7ae
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
call 0x3c4d6e
push 0
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x48]
mov ecx, eax
push 1
push 0
push 0
push 1
call 0x3e19fe
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x30], ecx
test byte [esi + 0x1c], 4
jne 0x489dd8
mov eax, dword [esi + 8]
jmp 0x489df6
mov ecx, edi
call 0x3e0c1e
test eax, eax
je 0x489df0
cmp dword [eax + 0x4c], 0
jne 0x489df0
add eax, 0x1c4
jmp 0x489df2
xor eax, eax
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x489eff
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
push edi
push 0x7b0b
push eax
call 0x3cd30e
add esp, 0x30
jmp 0x489eff
push 0xa
push 0x426810
lea ecx, [esp + 0x4c]
call fcn.00415b1e
mov ecx, dword [esp + 0x20]
call 0x3c4d6e
push 0
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x48]
mov ecx, eax
push 1
push 0
push 0
push 1
call 0x3e19fe
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x489e89
movzx eax, word [ecx - 4]
add eax, eax
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00415b1e
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x4c]
call fcn.00415b1e
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x3a
push eax
lea ecx, [esp + 0x4c]
call fcn.00415b1e
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x4c]
call fcn.00415b1e
mov eax, dword [esp + 0x1c]
mov ecx, edi
push 0
push 0
push 0
mov esi, dword [eax + esi*4]
lea eax, [esp + 0x50]
push 1
push 0
push dword [esp + 0x38]
push eax
push edi
call 0x3e28ae
push eax
mov ecx, esi
call 0x3dd7ae
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, ebx
jl 0x489cde
mov eax, dword [esp + 0x4c]
shr eax, 1
test eax, eax
jle 0x489f71
test byte [esi + 0x1c], 4
mov ecx, dword [edi + 4]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
jne 0x489f30
mov eax, dword [esi + 8]
jmp 0x489f4e
mov ecx, edi
call 0x3e0c1e
test eax, eax
je 0x489f48
cmp dword [eax + 0x4c], 0
jne 0x489f48
add eax, 0x1c4
jmp 0x489f4a
xor eax, eax
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x489f71
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push ecx
push edi
push 0x7792
push eax
call 0x3cd30e
add esp, 0x30
mov byte [esp + 0x2a8], 1
mov eax, dword [esp + 0x170]
mov esi, dword [0x66016c]
mov edi, dword [0x660480]
mov dword [esp + 0x16c], 0x424634
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x170], 0x42461c
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x120]
mov dword [esp + ecx + 0x16c], eax
mov eax, dword [esp + 0x184]
test eax, eax
je 0x48a013
cmp eax, 1
jne 0x489fdf
push dword [esp + 0x188]
push 0
push dword [0x65e8d0]
call esi
jmp 0x489fed
cmp eax, 2
jne 0x489fed
push dword [esp + 0x188]
call edi
lea eax, [esp + 0x18c]
mov dword [esp + 0x188], eax
mov dword [esp + 0x178], 0x100
mov dword [esp + 0x184], 0
jmp 0x48a01a
mov eax, dword [esp + 0x188]
xor ecx, ecx
mov dword [esp + 0x174], 0
mov word [eax], cx
mov dword [esp + 0x290], 0x41b854
mov byte [esp + 0x2a8], cl
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], 0x424634
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x48], 0x42461c
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x120]
mov dword [esp + ecx + 0x44], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x48a0a6
cmp eax, 1
jne 0x48a081
push dword [esp + 0x60]
push 0
push dword [0x65e8d0]
call esi
jmp 0x48a08c
cmp eax, 2
jne 0x48a08c
push dword [esp + 0x60]
call edi
lea eax, [esp + 0x64]
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], 0x100
mov dword [esp + 0x5c], 0
jmp 0x48a0aa
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esp + 0x4c], 0
mov word [eax], cx
mov dword [esp + 0x168], 0x41b854
mov dword [esp + 0x2a8], 0xffffffff
push dword [esp + 0x1c]
push ecx
push dword [0x65e8d0]
call esi
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 8