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

Disassembly:
push ebp
sub esp, 0xb8
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
movzx ecx, word [esp + 0xcc]
mov dword [esp + 0x74], 0x530940
mov dword [esp + 0x38], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xb0]
mov dword [esp], edx
mov word [esp + 0x4a], cx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x532980
mov dword [esp + 0x80], 0x4f6e8f
mov dword [esp + 0x84], esp
call fcn.004c3070
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 + 0x2c], edx
mov byte [esp + 0x3c], al
call fcn.0052c910
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x34], eax
call fcn.004d93b0
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
movzx edx, word [edx + 0x3c]
cmp word [eax], dx
je 0x4f6d56
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0xa4], edx
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [eax - 0xc]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp], 8
lea eax, [ecx + eax*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x60], 0xffffffff
call eax
sub esp, 0xc
sub eax, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x34], eax
jne 0x4f6960
movzx eax, byte [esp + 0x3c]
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.004c3130
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add esp, 0xb8
pop ebp
ret 0x14
add eax, eax
mov dword [esp], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x53b86c
mov dword [esp + 0x60], 1
call fcn.004f9470
sub esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 0x30]
sub ecx, eax
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4f6a8e
test eax, eax
mov edx, dword [edx + 0xc]
mov eax, dword [esp + 0x34]
cmovns eax, ecx
test edx, edx
mov dword [esp + 0x30], eax
je 0x4f6d90
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.004f8850
sub esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
lea edx, [ecx + edx*2]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x14]
mov dword [esp + 0x58], eax
call fcn.004f8d70
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.00528930
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.004f8d70
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
sub eax, dword [esp + 0x9c]
mov dword [esp + 4], 0xffffffff
sar eax, 1
mov dword [esp], eax
call fcn.004f81d0
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
test eax, eax
jle 0x4f6ae8
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx + 0x12]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp], eax
call fcn.004f96d0
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x4f6e43
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
lea eax, [edx + ecx*2]
mov dword [esp], eax
lea ecx, [esp + 0x9c]
call fcn.004f8290
sub esp, 8
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, eax
and edx, 0xb0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x9c]
add ecx, dword [edx - 0xc]
xor edx, edx
test ah, 2
jne 0x4f6d82
add ecx, edx
mov eax, ecx
add eax, eax
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 0xa0], 0x53b86c
mov dword [esp + 0x60], 2
call fcn.004f9470
sub esp, 4
mov edx, dword [esp + 0xc8]
movzx ecx, word [esp + 0x4a]
mov dword [esp + 0x28], 1
mov edx, dword [edx + 8]
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x54], ecx
setb byte [esp + 0x34]
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], edx
sete al
sub edx, dword [esp + 0x3c]
and byte [esp + 0x34], al
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
movsx eax, byte [esp + edx + 0xa3]
cmp eax, 4
ja case.default.0x4f6b93
jmp dword [eax*4 + 0x578614]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4f6e20
cmp dword [esp + 0x28], 4
jne 0x4f6bd7
jmp 0x4f6c47
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x4f6df6
lea esi, [esi]
cmp dword [esp + 0x28], 4
je 0x4f6c14
add dword [esp + 0x28], 1
jmp 0x4f6b82
cmp byte [esp + 0x34], 0
je case.default.0x4f6b93
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.004f8520
sub esp, 8
cmp dword [esp + 0x28], 4
jne 0x4f6bd7
cmp dword [esp + 0x44], 1
jbe 0x4f6c47
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, 2
mov dword [esp], eax
call fcn.004f8290
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x30], eax
jbe 0x4f6c9e
cmp dword [esp + 0x4c], 0x20
movzx edx, word [esp + 0x4a]
je 0x4f6dc2
mov ecx, dword [esp + 0x30]
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.004f8be0
sub esp, 0xc
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x60], 2
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa8]
call fcn.00520e10
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 + 0x3c], dl
call fcn.004f9e10
lea ecx, [esp + 0x9c]
call fcn.004f9e10
jmp 0x4f6929
cmp byte [esp + 0x34], 0
jne 0x4f6be7
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.004f96d0
jmp 0x4f6d4e
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.004f8390
sub esp, 4
jmp case.default.0x4f6b93
mov edx, dword [ecx + 0x38]
mov dword [esp + 0xa4], edx
mov edx, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x50], edx
lea edx, [eax + 2]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
cmove edx, eax
mov dword [esp + 0x28], edx
jmp 0x4f68ea
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x1c]
jmp 0x4f6b17
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.004f8650
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
jmp 0x4f6a8e
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub edx, eax
mov dword [esp], edx
call fcn.004f8520
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
jmp 0x4f6c9e
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xa0]
mov eax, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.004f8290
jmp 0x4f6c0a
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.004f96d0
jmp 0x4f6d4e
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx + 0x3e]
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.004f8520
sub esp, 8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004f8290
jmp 0x4f6ae5