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

Disassembly:
mov ecx, dword [0x8602c0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x4f660c
sub esp, 0xb0
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x4f5ead
movzx ecx, byte [esp + 0xcc]
test cl, cl
jne 0x4f5e95
lea edx, [eax - 2]
cmp edx, 0x3c
jbe 0x4f5ead
test cl, cl
je 0x4f657a
cmp eax, 2
je 0x4f5ead
cmp eax, 8
je 0x4f5ead
cmp eax, 0xa
je 0x4f5ead
cmp eax, 0x10
jne 0x4f657a
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0xc8]
test ebx, ebx
jne 0x4f6055
test ecx, ecx
je 0x4f5eff
mov esi, 0xa
mov ebp, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov ebp, 0x2e
jmp 0x4f6048
cmp al, 0x30
je 0x4f5f20
mov esi, 0xa
mov ebp, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov ebp, 0x2e
jmp 0x4f6048
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 4]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x4f5f60
movzx ebx, byte [esp + 0xcc]
mov esi, 0xa
mov edi, 1
xor ebp, ebp
jmp 0x4f602d
cmp cl, 0x58
ja 0x4f5f76
cmp cl, 0x42
je 0x4f5f7b
cmp cl, 0x4f
je 0x4f5f94
cmp cl, 0x58
je 0x4f5fad
jmp 0x4f5fc1
cmp cl, 0x62
jne 0x4f5f8f
movzx ebx, byte [esp + 0xcc]
mov ebp, 0x62
mov esi, 2
jmp 0x4f5fe0
cmp cl, 0x6f
jne 0x4f5fa8
movzx ebx, byte [esp + 0xcc]
mov ebp, 0x6f
mov esi, 8
jmp 0x4f5fe0
cmp cl, 0x78
jne 0x4f5fc1
movzx ebx, byte [esp + 0xcc]
mov ebp, 0x78
mov esi, 0x10
jmp 0x4f5fe0
movzx ebx, byte [esp + 0xcc]
test bl, bl
je 0x4f5fd6
xor ebp, ebp
mov esi, 0xa
jmp 0x4f5fe0
mov ebp, 0x30
mov esi, 8
test ebp, ebp
je 0x4f6028
cmp ebp, 0x30
je 0x4f6024
mov dword [esp + 0x40], ebp
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0xc4]
mov dword [esp], edx
call ecx
movzx ecx, byte [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0xcc]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x5c]
xor edi, edi
jmp 0x4f602d
mov edi, 1
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0x40], ebp
mov ebp, 0x30
mov ebp, ecx
mov ecx, eax
mov eax, ebp
mov ebp, 0x30
mov ebx, esi
mov esi, ebp
mov ebp, dword [esp + 0xc8]
jmp 0x4f6066
mov ebp, ebx
mov esi, 0x2e
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov ebx, ebp
nop
test ebx, ebx
je 0x4f6575
mov dword [esp + 0xa4], edx
mov byte [esp + 0x2d], al
mov eax, 0xffffffff
xor edx, edx
div ebx
mov edx, ebx
mov edx, 1
mov dword [esp + 0x30], edx
mov edx, ebx
jmp 0x4f60a5
imul ebx, edx
mov ebp, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0xc8]
cmp ebx, eax
jbe 0x4f6092
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x98], eax
mov eax, 0xffffffff
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0xcc]
mov byte [esp + 0x2f], al
mov dword [esp + 0x90], ecx
xor ecx, ecx
mov byte [esp + 0x2e], cl
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x80], ebx
xor ebx, ebx
mov dword [esp + 0x54], ebx
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
jmp 0x4f61a4
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], bl
mov eax, dword [esp + 0xc0]
mov edx, dword [eax + 0x10]
mov ebp, dword [esp + 0xc4]
mov dword [esp], ebp
call edx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx eax, byte [esp + 4]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0xa4], edx
mov byte [esp + 0x2d], al
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], esi
test ecx, ecx
jne 0x4f6376
movzx ecx, byte [esp + 0x2d]
cmp cl, 0x2e
jne 0x4f61e4
movzx ebx, byte [esp + 0x2f]
test bl, bl
je 0x4f61e9
cmp esi, 0x5f
sete cl
movzx ebx, byte [esp + 0x2e]
or ecx, ebx
xor ebx, ebx
mov esi, 0x2e
jmp 0x4f6135
movzx ebx, byte [esp + 0x2f]
cmp cl, 0x5f
jne 0x4f622d
test ebp, ebp
jne 0x4f622d
cmp esi, 0x30
setne cl
movzx esi, byte [esp + 0x2e]
or ecx, esi
mov byte [esp + 0x2e], cl
mov esi, 0x5f
mov dword [esp + 0x44], esi
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x70]
jmp 0x4f6322
lea esi, [ecx - 0x30]
xchg esi, eax
cmp al, 9
xchg esi, eax
ja 0x4f623e
xchg esi, eax
movzx ecx, al
xchg esi, eax
jmp 0x4f6278
lea esi, [ecx - 0x61]
xchg esi, eax
cmp al, 0x19
xchg esi, eax
ja 0x4f6252
lea esi, [ecx - 0x57]
xchg esi, eax
movzx ecx, al
xchg esi, eax
jmp 0x4f6278
lea esi, [ecx - 0x41]
xchg esi, eax
cmp al, 0x19
xchg esi, eax
ja 0x4f6273
cmp edx, 0x24
jg 0x4f6269
add ecx, 0xffffffc9
movzx ecx, cl
jmp 0x4f6278
lea esi, [ecx - 0x1d]
xchg esi, eax
movzx ecx, al
xchg esi, eax
jmp 0x4f6278
mov ecx, 0x3f
cmp ecx, edx
jae 0x4f6350
mov esi, dword [esp + 0x3c]
imul esi, edx
mov edx, dword [esp + 0x48]
inc edx
add ecx, esi
cmp eax, edx
je 0x4f62a8
mov esi, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
jmp 0x4f6310
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.004efb40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
movzx ebx, byte [esp + 0x2f]
mov ebp, dword [esp + 0xc8]
mov edi, dword [esp + 0x4c]
mov esi, edx
mov dword [esp + 0x58], ecx
xor ecx, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x30]
xor edx, edx
inc edi
mov dword [esp + 0x68], eax
mov eax, 0x30
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x38]
movzx ecx, byte [esp + 0x2e]
mov esi, dword [esp + 0x44]
jmp 0x4f6135
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
cmp dword [0x82f618], ecx
je 0x4f6387
mov eax, dword [esp + 0xa4]
jmp 0x4f63d6
mov eax, dword [0x82f61c]
mov dword [esp], ecx
mov edx, dword [esp + 0xa4]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004040e0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4f63bf
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
xor ecx, ecx
xor eax, eax
jmp 0x4f63d6
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xa4]
test ecx, ecx
jne 0x4f63f4
movzx ebx, byte [esp + 0x2e]
test bl, bl
jne 0x4f63e8
cmp esi, 0x5f
jne 0x4f63f4
mov ecx, dword [0x82f830]
mov eax, dword [0x82f834]
test edi, edi
jne 0x4f645e
mov ebx, dword [esp + 0x40]
cmp ebx, 0x30
je 0x4f640f
mov ecx, dword [0x82f828]
mov eax, dword [0x82f82c]
jmp 0x4f645e
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], 0
mov edx, dword [esp + 0x58]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], 0xa
mov dword [esp + 0xe0], 1
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], eax
add esp, 0xb0
ret
mov dword [esp + 0xa4], eax
mov ebx, dword [esp + 0x48]
test ebx, ebx
jle 0x4f647a
nop
mov ebp, edx
mov esi, 1
jmp 0x4f6505
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x54]
jmp 0x4f6493
dec esi
mov eax, dword [esp + 0xa4]
test esi, esi
jle 0x4f64a6
mov eax, dword [ebp + esi*4 - 4]
test eax, eax
je 0x4f648b
mov eax, dword [esp + 0xa4]
cmp esi, ebx
ja 0x4f64f7
mov eax, dword [esp + 0x38]
test eax, eax
jl 0x4f64b6
sub eax, edi
jmp 0x4f64b8
mov eax, edi
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xe8], eax
add esp, 0xb0
ret
mov ecx, esi
mov edx, ebx
call fcn.00467cf0
imul edx, edx
sar ebx, 1
test ebx, ebx
jle 0x4f6516
test ebx, 1
je 0x4f6500
imul esi, edx
jmp 0x4f6500
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004efb40
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
jmp 0x4f6489
call fcn.00436f20
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp], eax
call fcn.00409a00
mov eax, dword [esp + 4]
lea ecx, [0x60dac0]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
lea eax, [0x63f5c9]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0xa8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cbc00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409b10
mov eax, dword [esp + 8]
lea ecx, [0x60d940]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00438060
nop
call fcn.00466840
jmp fcn.004f5e50