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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x118
mov eax, dword [esp + 0x140]
mov dword [esp + 0x34], eax
mov dl, byte [esp + 0x13c]
mov byte [esp + 0x3b], dl
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x3c], ecx
mov esi, dword [esp + 0x134]
mov dword [esp + 0x40], esi
mov edi, dword [esp + 0x130]
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
and dl, 1
mov byte [esp + 0x67], dl
cmp eax, ecx
jae 0x4f5512
mov al, byte [esp + 0x3b]
test al, 1
jne 0x4f58cd
jmp 0x4f58aa
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], 1
mov dword [esp + 0xe4], 1
mov dword [esp + 0xe8], 1
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], eax
cmp eax, 2
jb 0x4f561e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], 2
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.004e93c0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xfc], ecx
mov edx, ecx
add edx, 0x14
mov dword [esp + 0x88], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004e93c0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ede0
mov byte [esp + 0x33], al
mov cl, al
and cl, 1
mov byte [esp + 0x107], cl
test al, 1
jne 0x4f5642
jmp 0x4f5633
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], 0
jmp 0x4f586e
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x84], eax
jb 0x4f565d
jmp 0x4f5658
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x84], eax
jb 0x4f5775
jmp 0x4f5770
jmp 0x4f5739
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x108], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e93c0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
cmp edx, eax
setb bl
and bl, 1
mov byte [esp + 0xc7], bl
mov dword [esp + 0xc8], ecx
imul edx, edx, 0x14
add edx, dword [esp + 0xc8]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xa0]
sub edx, 1
mov dword [esp + 0x9c], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e93c0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x10c], eax
imul ecx, dword [esp + 0x9c], 0x14
add eax, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ede0
test al, 1
jne 0x4f5751
jmp 0x4f573b
jmp 0x4f5753
mov eax, dword [esp + 0x84]
add eax, 1
mov dword [esp + 0x84], eax
jmp 0x4f5633
jmp 0x4f5739
mov al, byte [esp + 0x33]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], ecx
and al, 1
mov byte [esp + 0x80], al
jmp 0x4f586e
jmp 0x4f5851
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x110], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e93c0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
cmp edx, eax
setb bl
and bl, 1
mov byte [esp + 0xb3], bl
mov dword [esp + 0xb4], ecx
imul edx, edx, 0x14
add edx, dword [esp + 0xb4]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x94]
sub edx, 1
mov dword [esp + 0x90], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e93c0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x114], eax
imul ecx, dword [esp + 0x90], 0x14
add eax, ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0049ede0
test al, 1
jne 0x4f5858
jmp 0x4f5856
jmp 0x4f5753
jmp 0x4f5851
mov eax, dword [esp + 0x84]
add eax, 1
mov dword [esp + 0x84], eax
jmp 0x4f5642
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov dl, byte [esp + 0x80]
mov byte [esp + 0x27], dl
mov dword [esp + 0x68], eax
and dl, 1
mov byte [esp + 0x6f], dl
cmp eax, ecx
jae 0x4f5899
jmp 0x4f5501
mov al, byte [esp + 0x27]
test al, 1
jne 0x4f5983
jmp 0x4f5974
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0052bbb0
mov dword [esp + 0x70], eax
shl eax, 1
mov dword [esp + 0x50], eax
jmp 0x4f5966
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], 0x20
mov dword [esp], 0x20
mov dword [esp + 4], eax
call fcn.0052bbb0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x78], esi
xor eax, eax
lea eax, [0x6020f4]
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004961c0
mov ecx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x34]
mov esi, edx
mov edx, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
call fcn.0049bea0
mov eax, dword [esp + 0x1c]
shl eax, 1
or eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
add esp, 0x118
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x20]
shl eax, 1
or eax, 1
mov dword [esp + 0x50], eax
jmp 0x4f5966
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
xor eax, eax
lea eax, [0x602104]
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004961c0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0050d650
jmp 0x4f5974