Function at 0x4f5e70
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], 0x531120
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], 0x532ecc
mov dword [esp + 0x80], 0x4f6535
mov dword [esp + 0x84], esp
call fcn.004c3850
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.0052d090
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x2c], eax
call fcn.004d98b0
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 0x4f6332
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 0x4f62e9
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 0x4f62e9
mov eax, dword [esp + 0x28]
lea esi, [esi]
add eax, 1
cmp eax, ebx
jne 0x4f6320
sub eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4f62e9
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x53c87c
mov dword [esp + 0x60], 1
add eax, eax
mov dword [esp], eax
call fcn.00504870
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 0x4f60e2
test eax, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmovns ecx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x4f6436
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.00503da0
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.00504270
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.00528f80
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.00504270
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.00503700
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
test eax, eax
jle 0x4f6139
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.00504ae0
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x4f6468
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.005037c0
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 0x4f6365
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], 0x53c87c
mov dword [esp + 0x60], 2
call fcn.00504870
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.0x4f61ec
jmp dword [eax*4 + 0x5793f4]
cmp dword [esp + 0x44], 1
jbe 0x4f6226
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.005037c0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x2c], eax
jbe 0x4f627d
cmp dword [esp + 0x4c], 0x20
movsx edx, byte [esp + 0x4b]
je 0x4f64b4
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.005040e0
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.005215a0
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.00505220
lea ecx, [esp + 0x9c]
call fcn.00505220
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.004c3910
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 0x4f5f90
jmp 0x4f5f9b
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 0x4f62e9
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x4f5f60
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
jmp 0x4f6168
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4f6512
cmp dword [esp + 0x28], 4
jne 0x4f63ac
jmp 0x4f6226
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x4f64e8
cmp dword [esp + 0x28], 4
je 0x4f61f3
add dword [esp + 0x28], 1
jmp 0x4f61d7
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.005038c0
sub esp, 4
jmp case.default.0x4f61ec
cmp byte [esp + 0x30], 0
jne 0x4f640b
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00504ae0
jmp 0x4f63d4
cmp byte [esp + 0x30], 0
je case.default.0x4f61ec
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.00503a40
sub esp, 8
jmp case.default.0x4f61ec
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.00503ba0
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
jmp 0x4f60e2
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.00503a40
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.005037c0
jmp 0x4f6136
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.00503a40
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
jmp 0x4f627d
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.005037c0
jmp 0x4f642e
mov ecx, dword [esp + 0x50]
movsx eax, byte [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00504ae0
jmp 0x4f63d4