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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc4]
cmp eax, dword [ecx + 8]
jbe 0x4f967d
sub esp, 0x144
mov eax, dword [esp + 0x150]
test eax, eax
jle 0x4f8a12
mov ecx, dword [esp + 0x15c]
test ecx, ecx
jle 0x4f8a00
mov edx, dword [esp + 0x148]
lea ebx, [edx + eax*4 - 4]
mov ebp, dword [esp + 0x154]
lea esi, [ebp + ecx*4 - 4]
cmp esi, ebx
jne 0x4f89fc
mov edi, dword [esp + 0x160]
jmp 0x4f8a47
test eax, eax
jmp 0x4f8a27
test eax, eax
mov edx, dword [esp + 0x148]
mov ebp, dword [esp + 0x154]
jmp 0x4f8a27
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x148]
mov ebp, dword [esp + 0x154]
jle 0x4f8a58
mov ebx, dword [esp + 0x168]
test ebx, ebx
jle 0x4f8a4f
lea esi, [edx + eax*4 - 4]
mov edi, dword [esp + 0x160]
lea ebx, [edi + ebx*4 - 4]
cmp ebx, esi
jne 0x4f8a5f
xor eax, eax
xor edx, edx
xor ebx, ebx
jmp 0x4f8a66
mov edi, dword [esp + 0x160]
jmp 0x4f8a5f
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x170]
cmp esi, 1
jne 0x4f8a9e
mov ecx, dword [esp + 0x16c]
cmp dword [ecx], 1
jne 0x4f8aa5
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], eax
add esp, 0x144
ret
mov ecx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x164]
test ecx, ecx
je 0x4f8f76
cmp ecx, 1
jne 0x4f8b59
cmp dword [edi], 1
jne 0x4f8b59
test esi, esi
je 0x4f8b59
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x174]
mov dword [esp + 0x2c], eax
call fcn.004fcba0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
add esp, 0x144
ret
test esi, esi
je 0x4f8bf4
cmp esi, eax
jle 0x4f8bf4
cmp esi, 1
jne 0x4f8bb3
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447550
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x164]
mov ebp, dword [esp + 0x154]
mov esi, dword [esp + 0x170]
mov edi, dword [esp + 0x160]
mov eax, 1
jmp 0x4f8bf4
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
call fcn.00447550
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x164]
mov ebp, dword [esp + 0x154]
mov esi, dword [esp + 0x170]
mov edi, dword [esp + 0x160]
mov eax, dword [esp + 0x4c]
nop
mov ebx, dword [esp + 0x158]
cmp ebx, eax
jle 0x4f8c9b
cmp ebx, 1
jne 0x4f8c53
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447550
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x164]
mov ebp, dword [esp + 0x154]
mov esi, dword [esp + 0x170]
mov edi, dword [esp + 0x160]
mov ebx, 1
mov eax, 1
jmp 0x4f8c9b
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
call fcn.00447550
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x164]
mov ebp, dword [esp + 0x154]
mov esi, dword [esp + 0x170]
mov edi, dword [esp + 0x160]
mov ebx, dword [esp + 0x158]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x158]
cmp eax, ebx
jl 0x4f8cac
mov eax, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x120], edx
cmp ebp, edx
je 0x4f8cce
mov dword [esp], edx
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045ef80
mov eax, dword [0x7ea220]
mov ecx, dword [0x7ea224]
mov edx, dword [0x7ea228]
mov ebx, dword [esp + 0x154]
mov dword [esp], ebx
mov ebp, dword [esp + 0x158]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x15c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004f58f0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4f8e91
mov ebx, dword [esp + 0x164]
cmp ebx, 1
jle 0x4f8e88
mov ebp, dword [esp + 0x170]
test ebp, ebp
jle 0x4f8e9f
mov eax, dword [esp + 0x16c]
mov eax, dword [eax]
test eax, 1
je 0x4f8dec
mov eax, dword [esp + 0x120]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x168]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x174]
mov dword [esp + 0x2c], eax
call fcn.004fa060
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
add esp, 0x144
ret
mov eax, dword [esp + 0x120]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x168]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x174]
mov dword [esp + 0x2c], eax
call fcn.004f9690
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edx
add esp, 0x144
ret
mov ebp, dword [esp + 0x170]
jmp 0x4f8e9f
mov ebx, dword [esp + 0x164]
mov ebp, dword [esp + 0x170]
mov esi, dword [esp + 0x160]
mov edi, dword [esi + ebx*4 - 4]
nop
nop
cmp edi, 0x10000
jb 0x4f8ec0
mov eax, edi
shr edi, 0x10
mov ecx, 0x10
jmp 0x4f8ec4
mov eax, edi
xor ecx, ecx
cmp edi, 0x100
jb 0x4f8ed2
shr edi, 8
add ecx, 8
cmp edi, 0x100
jae 0x4f9670
mov edx, esi
lea esi, [0x650f2a]
movzx esi, byte [esi + edi]
lea esi, [esi + ecx - 0x20]
xchg esi, ebx
neg ebx
xchg esi, ebx
lea ecx, [esi + 1]
cmp ecx, 0x20
sbb edi, edi
shl eax, cl
and eax, edi
add esi, 0xffffffe1
xchg esi, ebx
neg ebx
xchg esi, ebx
mov dword [esp + 0x64], esi
xor ecx, ecx
mov edi, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x120]
mov dword [esp + 0x118], edi
xor edi, edi
mov dword [esp + 0x54], edi
xor ecx, ecx
mov dword [esp + 0xb4], ecx
xor ecx, ecx
mov dword [esp + 0x140], ecx
xor ecx, ecx
mov dword [esp + 0x70], ecx
xor ecx, ecx
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov dword [esp + 0x124], ecx
xor ecx, ecx
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [esp + 0x128], ecx
mov edi, dword [esp + 0x60]
xor ecx, ecx
jmp 0x4f9008
nop
cmp eax, 1
jge 0x4f8fa3
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447550
mov edx, dword [esp + 0xc]
mov eax, 1
mov dword [edx], 1
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], 1
mov dword [esp + 0x180], eax
add esp, 0x144
ret
mov ebp, dword [esp + 0x80]
inc ebp
shl ebx, 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x118], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0xb4], edi
mov esi, dword [esp + 0x64]
mov ecx, ebp
mov eax, ebx
mov edi, edx
mov edx, dword [esp + 0x160]
mov ebx, dword [esp + 0x164]
mov ebp, dword [esp + 0x170]
cmp ecx, esi
jge 0x4f9248
mov dword [esp + 0xb0], edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x140]
mov dword [esp], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
call fcn.004f7a90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x68]
test ebx, 0x80000000
jne 0x4f908c
mov ebp, dword [esp + 0x170]
test ebp, ebp
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x50]
jmp 0x4f9133
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x13c], eax
mov ebx, dword [esp + 0x118]
mov dword [esp], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x158]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x20], esi
call fcn.004f69f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x170]
test ebx, ebx
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x170]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov ebp, dword [esp + 0x13c]
mov dword [esp + 0x118], ebp
mov ebp, dword [esp + 0x170]
jne 0x4f9156
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x108]
jmp 0x4f8fc9
mov dword [esp + 0xa4], edx
mov dword [esp + 0x138], eax
mov dword [esp + 0xa0], ecx
mov ebx, dword [esp + 0x118]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x124]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x16c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x174]
mov dword [esp + 0x2c], esi
call fcn.004fcba0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x74]
mov edi, dword [esp + 0x128]
mov dword [esp + 0x140], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x138]
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x170]
mov dword [esp + 0x110], eax
mov eax, esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x110]
jmp 0x4f8fc9
lea esi, [ebx - 2]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x50], edx
mov dword [esp + 0xe8], ebx
mov ebx, dword [esp + 0x140]
mov dword [esp + 0x118], ebx
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x100]
mov edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0xe8]
jmp 0x4f9307
dec esi
mov ebx, dword [esp + 0x164]
mov ebp, dword [esp + 0x78]
mov ebp, dword [esp + 0x170]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x58], eax
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xe0]
test esi, esi
jl 0x4f935d
cmp ebx, esi
jbe 0x4f9667
mov dword [esp + 0x84], esi
mov ebx, dword [edx + esi*4]
mov dword [esp + 0xd0], eax
xor eax, eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x140], ecx
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xd0]
jmp 0x4f93f4
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x11c]
mov eax, ecx
jmp 0x4f936e
mov ecx, ebp
test ecx, ecx
jle 0x4f9381
lea ebp, [ecx - 1]
cmp eax, ebp
jbe 0x4f93a8
mov esi, dword [ebx + ecx*4 - 4]
test esi, esi
je 0x4f936c
cmp ecx, edi
ja 0x4f93a1
mov dword [esp + 0x178], ebx
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], edi
add esp, 0x144
ret
mov edx, edi
call fcn.0045e690
mov ecx, eax
mov eax, ebp
call fcn.0045e650
mov ebp, dword [esp + 0x7c]
inc ebp
shl ebx, 1
mov dword [esp + 0x7c], ebp
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x140], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x170]
mov esi, dword [esp + 0x84]
mov edi, edx
mov edx, dword [esp + 0x160]
mov ebp, dword [esp + 0x7c]
cmp ebp, 0x20
jge 0x4f92bf
mov dword [esp + 0x9c], edi
mov dword [esp + 0x134], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x118]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
call fcn.004f7a90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x68]
test ebx, 0x80000000
jne 0x4f949c
mov ebp, dword [esp + 0x170]
test ebp, ebp
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x140]
mov dword [esp + 0x118], esi
mov esi, dword [esp + 0xb4]
jmp 0x4f9546
mov dword [esp + 0x130], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], ecx
mov ebx, dword [esp + 0x140]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x158]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x15c]
mov dword [esp + 0x20], esi
call fcn.004f69f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x170]
test ebx, ebx
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x170]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x118], ebp
mov ebp, dword [esp + 0x170]
jne 0x4f9582
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x74], eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x128], ecx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb8]
jmp 0x4f93b1
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x12c], eax
mov ebx, dword [esp + 0x118]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x124]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x16c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x174]
mov dword [esp + 0x2c], esi
call fcn.004fcba0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x78]
mov edi, dword [esp + 0x134]
mov dword [esp + 0x118], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x12c]
mov dword [esp + 0x124], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x170]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x98]
jmp 0x4f93b1
mov eax, esi
mov ecx, ebx
call fcn.0045e650
mov eax, edi
mov ecx, 0x100
call fcn.0045e660
nop
call fcn.0045d190
jmp fcn.004f89a0