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

Disassembly:
push ebp
push ebx
sub esp, 0xb4
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
movzx ecx, byte [esp + 0xcc]
mov dword [esp + 0x74], 0x532cd0
mov dword [esp + 0x38], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xb0]
mov dword [esp], edx
mov byte [esp + 0x4b], cl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x534a84
mov dword [esp + 0x80], 0x4f87f5
mov dword [esp + 0x84], esp
call fcn.004c5400
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x40]
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
add edx, 0x6c
mov dword [esp], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x4a], al
call fcn.0052ec40
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x2c], eax
call fcn.004db5d0
sub esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x34]
mov eax, dword [eax]
movzx edx, byte [edx + 0x38]
cmp byte [eax], dl
mov dword [esp + 0x28], eax
je 0x4f85f2
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], eax
mov ebx, dword [ecx - 0xc]
add ebx, dword [esp + 0x28]
cmp dword [esp + 0x28], ebx
jae 0x4f85a9
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
movzx eax, byte [edx]
test byte [ecx + eax*2], 8
je 0x4f85a9
mov eax, dword [esp + 0x28]
lea esi, [esi]
add eax, 1
cmp eax, ebx
jne 0x4f85e0
sub eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f85a9
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x53d87c
mov dword [esp + 0x60], 1
add eax, eax
mov dword [esp], eax
call fcn.00506420
sub esp, 4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x2c]
sub edx, eax
test edx, edx
mov dword [esp + 0x30], edx
jle 0x4f83a2
test eax, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
cmovns ecx, edx
mov dword [esp + 0x30], ecx
test eax, eax
je 0x4f86f6
mov eax, ecx
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.00505950
sub esp, 8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
add edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
movsx eax, byte [eax + 0x12]
mov dword [esp + 0x58], eax
call fcn.00505e20
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0052ab30
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.00505e20
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
sub eax, dword [esp + 0x9c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.005052b0
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
test eax, eax
jle 0x4f83f9
mov ecx, dword [esp + 0x34]
movsx eax, byte [ecx + 0x11]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp], eax
call fcn.00506690
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x4f8728
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov eax, dword [edx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00505370
sub esp, 8
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xb0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x9c]
mov edx, dword [edx - 0xc]
add edx, dword [esp + 0x44]
test ah, 2
jne 0x4f8625
xor eax, eax
add edx, eax
mov eax, edx
add eax, eax
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x3c], edx
mov dword [esp + 0xa0], 0x53d87c
mov dword [esp + 0x60], 2
call fcn.00506420
sub esp, 4
mov eax, dword [esp + 0xc8]
movsx edx, byte [esp + 0x4b]
mov dword [esp + 0x28], 1
mov eax, dword [eax + 8]
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x54], edx
setb byte [esp + 0x30]
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
sete al
sub ecx, dword [esp + 0x3c]
and byte [esp + 0x30], al
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x28]
movsx eax, byte [esp + edx + 0xa3]
cmp eax, 4
ja case.default.0x4f84ac
jmp dword [eax*4 + 0x57a428]
cmp dword [esp + 0x44], 1
jbe 0x4f84e6
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
add eax, 1
mov dword [esp], eax
call fcn.00505370
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x2c], eax
jbe 0x4f853d
cmp dword [esp + 0x4c], 0x20
movsx edx, byte [esp + 0x4b]
je 0x4f8774
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [esp + 0x60], 2
sub ecx, eax
mov dword [esp + 4], ecx
lea ecx, [esp + 0xa0]
call fcn.00505c90
sub esp, 0xc
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
movzx ecx, byte [esp + 0x4a]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x60], 2
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa8]
call fcn.00523150
sub esp, 8
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
movzx edx, byte [esp + 0xac]
mov dword [esp + 0x30], eax
mov byte [esp + 0x4a], dl
call fcn.00506dd0
lea ecx, [esp + 0x9c]
call fcn.00506dd0
movzx eax, byte [esp + 0x4a]
mov ecx, dword [esp + 0xc8]
mov byte [esp + 0x38], al
lea eax, [esp + 0x5c]
mov dword [ecx + 8], 0
mov dword [esp], eax
call fcn.004c54c0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add esp, 0xb4
pop ebx
pop ebp
ret 0x14
movzx edx, byte [eax]
test byte [ecx + edx*2], 8
jne 0x4f8250
jmp 0x4f825b
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x24]
mov dword [esp + 0xa4], eax
mov eax, dword [edx + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], eax
mov ebx, dword [edx - 0xc]
test ebx, ebx
je 0x4f85a9
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x4f8220
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
jmp 0x4f8428
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x4f87d2
cmp dword [esp + 0x28], 4
jne 0x4f866c
jmp 0x4f84e6
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x4f87a8
cmp dword [esp + 0x28], 4
je 0x4f84b3
add dword [esp + 0x28], 1
jmp 0x4f8497
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.00505470
sub esp, 4
jmp case.default.0x4f84ac
cmp byte [esp + 0x30], 0
jne 0x4f86cb
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00506690
jmp 0x4f8694
cmp byte [esp + 0x30], 0
je case.default.0x4f84ac
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], 2
mov dword [esp], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 4], edx
call fcn.005055f0
sub esp, 8
jmp case.default.0x4f84ac
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], 1
mov dword [esp + 4], ecx
lea ecx, [esp + 0x9c]
mov dword [esp], eax
call fcn.00505750
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
jmp 0x4f83a2
mov ecx, dword [esp + 0x34]
movsx eax, byte [ecx + 0x39]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
neg eax
mov dword [esp], eax
call fcn.005055f0
sub esp, 8
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00505370
jmp 0x4f83f6
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub edx, eax
mov dword [esp], edx
call fcn.005055f0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
jmp 0x4f853d
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xa0]
mov eax, dword [edx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00505370
jmp 0x4f86ee
mov ecx, dword [esp + 0x50]
movsx eax, byte [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00506690
jmp 0x4f8694