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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xf8]
cmp eax, dword [ecx + 8]
jbe 0x4f1f20
sub esp, 0x178
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.0045cba0
mov ecx, dword [0x65f490]
mov ebx, dword [0x65f494]
mov ebp, dword [0x65f498]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebp
mov ecx, dword [esp + 0x188]
mov dword [esp + 0xc4], ecx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 0xc8], ebx
mov ebp, dword [esp + 0x190]
mov dword [esp + 0xcc], ebp
mov eax, 2
xor edx, edx
xor esi, esi
xor edi, edi
xor edx, edx
mov dword [esp + 0x5c], edx
xor edx, edx
mov dword [esp + 0x58], edx
xor edx, edx
mov dword [esp + 0xa8], edx
xor edx, edx
jmp 0x4f18cb
mov dword [esp + 0x80], edx
mov eax, dword [esp + edx*4 + 0xb8]
mov ecx, dword [esp + edx*4 + 0xbc]
mov ebp, dword [esp + edx*4 + 0xc0]
mov esi, dword [esp + ebx*4 + 0xb8]
mov edi, dword [esp + ebx*4 + 0xbc]
mov ebx, dword [esp + ebx*4 + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
call fcn.004efc40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x80]
mov dword [esp + ebx*4 + 0xbc], ecx
mov dword [esp + ebx*4 + 0xc0], edx
mov dword [esp + ebx*4 + 0xb8], eax
mov ebp, dword [esp + 0xa4]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1a8]
mov dword [esp + 0x2c], edx
call fcn.004f4780
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + ebx*4 + 0xb8]
mov dword [esp + 0xa8], ebp
mov esi, dword [esp + ebx*4 + 0xbc]
mov dword [esp + 0x58], esi
mov edi, dword [esp + ebx*4 + 0xc0]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0xa4], edi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x48], esi
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x4c], ebp
mov dword [esp + ebx*4 + 0xbc], ecx
mov dword [esp + ebx*4 + 0xc0], edx
mov dword [esp + ebx*4 + 0xb8], eax
mov ebp, dword [esp + ebx*4 + 0xc4]
mov esi, dword [esp + ebx*4 + 0xc8]
mov edi, dword [esp + ebx*4 + 0xcc]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x188]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x190]
mov dword [esp + 0x20], edx
call fcn.004eeba0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x80]
mov dword [esp + ebx*4 + 0xc4], eax
mov dword [esp + ebx*4 + 0xc8], ecx
mov dword [esp + ebx*4 + 0xcc], edx
mov ebp, dword [esp + 0xa4]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1a8]
mov dword [esp + 0x2c], edx
call fcn.004f4780
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + ebx*4 + 0xc4]
mov dword [esp + 0xa8], ebp
mov esi, dword [esp + ebx*4 + 0xc8]
mov edi, dword [esp + ebx*4 + 0xcc]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xa4], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + ebx*4 + 0xc4], eax
mov dword [esp + ebx*4 + 0xc8], ecx
mov dword [esp + ebx*4 + 0xcc], edx
mov eax, dword [esp + 0x64]
add eax, 2
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x188]
mov ebx, dword [esp + 0x18c]
mov edx, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov ebp, dword [esp + 0x190]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0xa4], edi
cmp eax, 0x10
jge 0x4f1916
mov dword [esp + 0x64], eax
shr eax, 0x1f
mov ebp, dword [esp + 0x64]
add eax, ebp
sar eax, 1
cmp eax, 0x10
jae 0x4f1f15
lea ebx, [eax + eax*2]
cmp ebp, 0x10
jae 0x4f1f09
lea edx, [ebp + ebp*2]
inc ebp
cmp ebp, 0x10
jb 0x4f1609
jmp 0x4f1efd
nop
mov ebx, dword [esp + 0x184]
cmp ebx, 1
jl 0x4f192c
mov eax, dword [esp + 0x17c]
jmp 0x4f1962
lea eax, [0x5310e0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00446320
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0xa4]
mov ebx, 1
mov dword [eax], 1
mov ecx, dword [esp + 0x198]
lea ebp, [ecx - 1]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x9c], eax
mov eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x9c]
jmp 0x4f19b4
mov ebp, dword [esp + 0x80]
dec ebp
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x94]
test ebp, ebp
jl 0x4f19f2
cmp ecx, ebp
jbe 0x4f1ef6
mov dword [esp + 0x80], ebp
mov ecx, dword [esp + 0x194]
mov ebp, dword [ecx + ebp*4]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x8c]
jmp 0x4f1b70
mov ecx, dword [esp + 0x50]
mov edx, ecx
jmp 0x4f19fc
mov ecx, ebp
test ecx, ecx
jle 0x4f1a0f
lea ebp, [ecx - 1]
cmp edx, ebp
jbe 0x4f1a36
mov esi, dword [eax + ecx*4 - 4]
test esi, esi
je 0x4f19fa
cmp ecx, ebx
ja 0x4f1a2f
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], ebx
add esp, 0x178
ret
mov edx, ebx
call fcn.0045ca40
mov eax, ebp
mov ecx, edx
call fcn.0045ca00
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x54]
shr ecx, 0x1c
lea ecx, [ecx + ecx*2]
mov ebp, dword [esp + ecx*4 + 0xb8]
mov ebx, dword [esp + ecx*4 + 0xbc]
mov ecx, dword [esp + ecx*4 + 0xc0]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call fcn.004eeba0
mov eax, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x2c], esi
call fcn.004f4780
mov eax, dword [esp + 0x60]
add eax, 4
mov dword [esp + 0x60], eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
shl eax, 4
mov dword [esp + 0x48], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xa8], ebp
mov ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x194]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x60]
cmp ebp, 0x20
jge 0x4f198f
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x68]
cmp ecx, ebx
jne 0x4f1b9c
test ebp, ebp
je 0x4f1edb
mov dword [esp + 0xb4], eax
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14], edx
call fcn.004efc40
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x2c], esi
call fcn.004f4780
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb0], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x48], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x74], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004efc40
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0xb0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x2c], esi
call fcn.004f4780
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xa4], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x48], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x4c], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004efc40
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x2c], esi
call fcn.004f4780
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xa4], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x48], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x4c], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004efc40
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x2c], esi
call fcn.004f4780
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 0xa8], ebp
jmp 0x4f1a3f
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
jmp 0x4f1a3f
mov eax, ebp
call fcn.0045ca00
mov eax, ebp
mov ecx, 0x10
call fcn.0045ca00
mov eax, ebp
mov ecx, 0x10
call fcn.0045ca00
mov ecx, 0x10
call fcn.0045ca00
nop
call fcn.0045b540
jmp fcn.004f1560