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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x5c]
cmp eax, dword [ecx + 8]
jbe 0x4f0d12
sub esp, 0xdc
mov eax, 0
mov dword [esp + 0xd8], eax
mov byte [esp + 0x1f], 0
nop
mov eax, dword [esp + 0xf0]
mov ecx, eax
and eax, 0x1f
mov dword [esp + 0x3c], eax
cmp eax, 0x14
ja 0x4f0499
lea edx, [eax - 0x12]
cmp edx, 1
jbe 0x4f04bf
cmp eax, 0x14
je 0x4f04a3
jmp 0x4f0ccb
cmp eax, 0x16
jbe 0x4f04bf
cmp eax, 0x17
jne 0x4f04b6
mov eax, dword [esp + 0xec]
mov edx, dword [eax]
test edx, edx
setne dl
xor edx, 1
jmp 0x4f04eb
cmp eax, 0x1a
jne 0x4f0ccb
test ecx, 0x200
jne 0x4f0519
test ecx, 0x80
je 0x4f04da
mov eax, dword [esp + 0xec]
mov edx, dword [eax]
jmp 0x4f04e3
mov eax, dword [esp + 0xec]
mov edx, eax
test edx, edx
setne dl
xor edx, 1
test dl, dl
je 0x4f0520
mov eax, dword [esp + 0xe4]
test byte [eax], al
mov dword [esp], eax
lea eax, [0x6381b1]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.004e3cb0
add esp, 0xdc
ret
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xe4]
mov ebx, dword [edx + 0x54]
inc ebx
mov dword [edx + 0x54], ebx
cmp ebx, 0x3e8
ja 0x4f053d
xor ebx, ebx
jmp 0x4f0681
mov edx, dword [esp + 0xe8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004828b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
lea ecx, [0x612b80]
mov dword [esp + 0x80], ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xe4]
mov ebx, dword [edx + 0x58]
lea ebp, [0x6138c0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea ebx, [esp + 0x80]
mov dword [esp + 8], ebx
call fcn.0040c4d0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4f0b68
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00408d10
mov eax, dword [esp + 4]
lea ecx, [0x612b80]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xe4]
mov edx, dword [eax + 0x58]
lea ebx, [0x6138c0]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea edx, [esp + 0x80]
mov dword [esp + 8], edx
call fcn.0040c850
mov eax, dword [esp + 0xc]
test byte [eax], al
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 0x58]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea edx, [0x4f0da0]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
lea ecx, [0x612b80]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0xd8], ecx
mov byte [esp + 0x1f], 1
mov edx, eax
mov ebx, 1
mov byte [esp + 0x1e], bl
mov dword [esp], edx
mov byte [esp + 4], 0x7b
call fcn.004e4170
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp + 8], edx
call fcn.00481d20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
lea ecx, [0x622d60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004476a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xe8]
mov dword [esp], ecx
mov edx, dword [esp + 0xec]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0xf0]
mov dword [esp + 8], ebx
call fcn.004825f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
xor ecx, ecx
jmp 0x4f0719
mov edx, dword [esp + 0x2c]
lea ecx, [edx + 1]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
call fcn.00482500
movzx eax, byte [esp + 4]
test al, al
je 0x4f0826
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00482360
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
cmp ebx, ebp
jae 0x4f0b5f
shl ebx, 5
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x6c]
mov dword [ebp + ebx + 8], edx
lea edx, [ebp + ebx]
mov dword [esp + 0x68], edx
mov esi, dword [0x7e0970]
lea edx, [ebp + ebx]
mov dword [esp + 0x64], edx
lea edx, [ebp + ebx + 4]
mov dword [esp + 0x60], edx
lea edx, [ebp + ebx + 0xc]
mov dword [esp + 0x5c], edx
lea edx, [ebp + ebx + 0x10]
mov dword [esp + 0x58], edx
test esi, esi
jne 0x4f07a5
mov dword [ebp + ebx], eax
mov dword [ebp + ebx + 4], ecx
jmp 0x4f07b9
mov edi, dword [esp + 0x64]
call fcn.0045e4b0
mov edi, dword [esp + 0x60]
mov eax, ecx
call fcn.0045e4b0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00482430
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x6c]
mov dword [ebp + ebx + 0x14], edx
mov edx, dword [0x7e0970]
test edx, edx
jne 0x4f07f1
mov dword [ebp + ebx + 0xc], eax
mov dword [ebp + ebx + 0x10], ecx
jmp 0x4f0805
mov edi, dword [esp + 0x5c]
call fcn.0045e4b0
mov edi, dword [esp + 0x58]
mov eax, ecx
call fcn.0045e4b0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004f21c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x4f070e
jmp 0x4f09ee
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00408ea0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea ecx, [0x4f0d20]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
lea ebx, [0x60bc20]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
call fcn.004875d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4f08c5
xor ecx, ecx
mov edx, dword [esp + 0x6c]
jmp 0x4f0913
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov byte [esp + 4], 0x7d
call fcn.004e4170
mov eax, dword [esp + 0xe4]
dec dword [eax + 0x54]
movzx eax, byte [esp + 0x1e]
test al, 1
je 0x4f08ff
and eax, 0xfffffffe
mov byte [esp + 0x1f], al
mov edx, dword [esp + 0xd8]
mov eax, dword [edx]
call eax
add esp, 0xdc
ret
mov ebx, dword [esp + 0x68]
lea edx, [ebx + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], edx
lea edi, [esp + 0xb8]
mov esi, edx
call fcn.0045ebd0
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x4f0945
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov byte [esp + 4], 0x2c
call fcn.004e4170
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xe4]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
movzx eax, byte [esp + 0xf5]
mov byte [esp + 0xc], al
call fcn.004f24a0
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
mov byte [esp + 4], 0x3a
call fcn.004e4170
mov edx, dword [esp + 0xe0]
mov eax, dword [edx]
mov ecx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xcc]
mov esi, dword [esp + 0xe4]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
movzx ecx, byte [esp + 0xf4]
mov byte [esp + 0x10], cl
movzx ebx, byte [esp + 0xf5]
mov byte [esp + 0x11], bl
call eax
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jg 0x4f0906
jmp 0x4f08c5
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 8], eax
call fcn.00483af0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x80]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
call fcn.00408e20
mov eax, dword [esp + 8]
lea ecx, [0x612980]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00408e20
mov eax, dword [esp + 8]
lea ecx, [0x612980]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
lea eax, [0x642565]
mov dword [esp], eax
mov dword [esp + 4], 0x24
lea eax, [esp + 0xa8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b27a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [0x61f440]
mov dword [esp], eax
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.00408bd0
mov eax, dword [esp + 8]
lea ecx, [0x61f440]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433710
mov eax, ebx
mov ecx, ebp
call fcn.0045e530
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp + 8], edx
call fcn.00483af0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test eax, eax
je 0x4f0bac
mov eax, dword [eax + 4]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x63ea0d]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b5220
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea edx, [0x61d6a0]
mov dword [esp], edx
call fcn.0040b460
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xf0]
mov dword [edi + 8], eax
mov eax, dword [0x7e0970]
test eax, eax
jne 0x4f0ca5
mov ecx, dword [esp + 0xe8]
mov dword [edi], ecx
mov ecx, dword [esp + 0xec]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x4f0c91
mov eax, dword [esp + 0x54]
mov dword [edi + 0xc], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea eax, [0x690a38]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edi
lea eax, [0x61f440]
mov dword [esp], eax
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.00408bd0
mov eax, dword [esp + 8]
lea ecx, [0x61f440]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433710
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x54]
mov edx, edi
mov edi, ecx
call fcn.0045e4b0
mov edi, edx
jmp 0x4f0c47
mov eax, dword [esp + 0xe8]
call fcn.0045e4b0
lea ecx, [edi + 4]
mov eax, dword [esp + 0xec]
mov edx, edi
mov edi, ecx
call fcn.0045e4b0
mov edi, edx
jmp 0x4f0c2f
lea eax, [0x61e180]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x63bf1d]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
lea ecx, [0x616660]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433710
nop
call fcn.00432c60
add esp, 0xdc
ret
call fcn.0045d0a0
jmp fcn.004f0440