Function at 0x4fc840
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], 0x536980
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], 0x5389c0
mov dword [esp + 0x80], 0x4fcecf
mov dword [esp + 0x84], esp
call fcn.004c90b0
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.00532950
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x34], eax
call fcn.004df3f0
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 0x4fcd96
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 0x4fc9a0
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.004c9170
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], 0x54186c
mov dword [esp + 0x60], 1
call fcn.004ff4b0
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 0x4fcace
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 0x4fcdd0
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.004fe890
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.004fedb0
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.0052e970
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.004fedb0
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.004fe210
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
test eax, eax
jle 0x4fcb28
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.004ff710
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x4fce83
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.004fe2d0
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 0x4fcdc2
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], 0x54186c
mov dword [esp + 0x60], 2
call fcn.004ff4b0
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.0x4fcbd3
jmp dword [eax*4 + 0x57e634]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4fce60
cmp dword [esp + 0x28], 4
jne 0x4fcc17
jmp 0x4fcc87
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x4fce36
lea esi, [esi]
cmp dword [esp + 0x28], 4
je 0x4fcc54
add dword [esp + 0x28], 1
jmp 0x4fcbc2
cmp byte [esp + 0x34], 0
je case.default.0x4fcbd3
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.004fe560
sub esp, 8
cmp dword [esp + 0x28], 4
jne 0x4fcc17
cmp dword [esp + 0x44], 1
jbe 0x4fcc87
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.004fe2d0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x30], eax
jbe 0x4fccde
cmp dword [esp + 0x4c], 0x20
movzx edx, word [esp + 0x4a]
je 0x4fce02
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.004fec20
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.00526e50
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.004ffe50
lea ecx, [esp + 0x9c]
call fcn.004ffe50
jmp 0x4fc969
cmp byte [esp + 0x34], 0
jne 0x4fcc27
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.004ff710
jmp 0x4fcd8e
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.004fe3d0
sub esp, 4
jmp case.default.0x4fcbd3
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 0x4fc92a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x1c]
jmp 0x4fcb57
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.004fe690
sub esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
jmp 0x4fcace
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.004fe560
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x30]
jmp 0x4fccde
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.004fe2d0
jmp 0x4fcc4a
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.004ff710
jmp 0x4fcd8e
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.004fe560
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.004fe2d0
jmp 0x4fcb25