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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489e96
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x489e4e
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov eax, dword [0x43176c]
call fcn.0043218c
mov dword [ebx + 0x10], 1
lea ecx, [ebx + 4]
mov edx, esi
mov eax, ebx
call fcn.0048df40
mov eax, dword [ebx + 0x10]
cmp eax, 1
jne 0x489750
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 2
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, ebx
call fcn.0048e5fc
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00406de8
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 4
lea ecx, [ebx + 0x38]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e380
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x98]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, ebx
call fcn.0048e5fc
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xa0]
call fcn.00406de8
mov eax, dword [ebp - 0x40]
call fcn.004892b0
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
call fcn.00406de8
jmp 0x489d95
cmp eax, 2
jne 0x4897f6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 3
lea ecx, [ebp - 0x28]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x44]
call fcn.00406cd8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00406de8
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406de8
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x48]
call fcn.00406cd8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00406de8
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
call fcn.00406de8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
call fcn.00406cd8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00406de8
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00406de8
jmp 0x489d95
cmp eax, 3
jne 0x48986d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0x30]
push eax
push 2
lea ecx, [ebp - 0x28]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x50]
call fcn.00406cd8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00406de8
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
call fcn.00406de8
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x54]
call fcn.00406cd8
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00406de8
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
call fcn.00406de8
jmp 0x489d95
cmp eax, 4
jne 0x4898cd
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 3
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x70]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x78]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x80]
call fcn.00406de8
jmp 0x489d95
cmp eax, 5
jne 0x489905
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 0x18]
push eax
push 1
lea ecx, [ebp - 0x28]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x88]
call fcn.00406de8
jmp 0x489d95
cmp eax, 6
jne 0x489951
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x30]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, ebx
call fcn.0048e5fc
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + pe_nt_image_headers32]
call fcn.00406de8
jmp 0x489d95
cmp eax, 7
jne 0x4899b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb0]
call fcn.00406de8
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00406de8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
call fcn.00406de8
jmp 0x489d95
cmp eax, 8
jne 0x489a1d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc8]
call fcn.00406de8
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd0]
call fcn.00406de8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xd8]
call fcn.00406de8
jmp 0x489d95
cmp eax, 9
jne 0x489a69
lea eax, [ebp - 0x3c]
mov edx, dword [ebx + 8]
call fcn.004055d8
mov edx, dword [ebp - 0x3c]
mov eax, 0x489ea8
call fcn.00405ad8
dec eax
jne 0x489a4f
lea eax, [ebp - 0x3c]
mov ecx, 3
mov edx, 1
call fcn.004059ac
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x108]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xa
jne 0x489ab5
lea eax, [ebp - 0x3c]
mov edx, dword [ebx + 8]
call fcn.004055d8
mov edx, dword [ebp - 0x3c]
mov eax, 0x489ea8
call fcn.00405ad8
dec eax
jne 0x489a9b
lea eax, [ebp - 0x3c]
mov ecx, 3
mov edx, 1
call fcn.004059ac
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x110]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xb
jne 0x489b1b
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xe0]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xe8]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xf0]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xc
jne 0x489b81
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xf8]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x118]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x120]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xd
jne 0x489be7
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x128]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x130]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x138]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xe
jne 0x489c4d
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x140]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x148]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x150]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0xf
jne 0x489cb3
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x158]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x160]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x168]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0x10
jne 0x489d16
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x170]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x178]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x180]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0x11
jne 0x489d79
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x188]
call fcn.00406de8
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x190]
call fcn.00406de8
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x198]
call fcn.00406de8
jmp 0x489d95
cmp eax, 0x12
jne 0x489d95
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x28]
push eax
push 1
lea ecx, [ebx + 0x18]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0048e064
lea ecx, [ebx + 4]
mov edx, esi
mov eax, ebx
call fcn.0048df40
inc dword [ebx + 0x10]
mov eax, esi
call fcn.00466968
test al, al
jne 0x489de6
mov edx, dword [ebx + 4]
mov eax, 0x489eb4
call fcn.00405ad8
test eax, eax
jne 0x489de6
mov edx, dword [ebx + 4]
mov eax, 0x489ec4
call fcn.00405ad8
test eax, eax
jne 0x489de6
mov edx, dword [ebx + 4]
mov eax, 0x489ed4
call fcn.00405ad8
test eax, eax
je 0x4896a6
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x5c]
call fcn.00406cd8
push eax
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.00406de8
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406de8
mov eax, esi
call fcn.00466968
test al, al
jne 0x489e44
mov edx, dword [ebx + 4]
mov eax, 0x489eb4
call fcn.00405ad8
test eax, eax
jne 0x489e44
mov edx, dword [ebx + 4]
mov eax, 0x489ec4
call fcn.00405ad8
test eax, eax
je 0x489693
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489e9d
lea eax, [ebp - 0x5c]
call fcn.00406cd8
lea eax, [ebp - 0x54]
mov edx, dword [0x430acc]
mov ecx, 5
call fcn.00405ca0
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00405590
lea eax, [ebp - 4]
call fcn.00406cd8
ret