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

Disassembly:
push 0xffffffffffffffff
push 0x57e919
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x40], 0
call fcn.004e5080
mov esi, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x34], esi
call fcn.004e5080
mov dword [esp + 0x30], eax
cmp eax, esi
lea eax, [esp + 0x34]
jb 0x4f1803
lea eax, [esp + 0x30]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x4f1825
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov esi, dword [esp + 0x7c]
push eax
call fcn.004e4bc0
jmp 0x4f1f1e
cmp eax, 0x2e
ja 0x4f1834
mov dword [esp + 0x24], 1
jmp 0x4f1846
mov ecx, 0x104
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov ebx, 1
shl ebx, cl
lea esi, [esp + 0x44]
mov eax, ebx
shl eax, cl
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x24], eax
call fcn.004f2ad0
mov dword [esp + 0x74], 1
mov edi, dword [esp + 0x48]
test edi, edi
mov ebp, dword [esp + 0x4c]
je 0x4f1895
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4f189a
call fcn.00536646
mov edx, dword [esp + 0x80]
lea esi, [edi + 0x14]
push edx
call fcn.004e4e60
test edi, edi
je 0x4f18c7
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f18cc
call fcn.00536646
lea eax, [ebx + ebx*4]
add eax, eax
add eax, eax
lea esi, [eax + edi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
push eax
mov dword [esp + 0x38], esi
call fcn.004e4e60
cmp dword [esp + 0x24], 1
jne 0x4f193c
test edi, edi
je 0x4f190e
sub ebp, edi
mov eax, 0x66666667
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
ja 0x4f1913
call fcn.00536646
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x84]
push eax
lea esi, [edi + 0x3c]
call edx
push eax
call fcn.004e4e60
jmp 0x4f1d57
test edi, edi
je 0x4f195a
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4f195f
call fcn.00536646
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
push edx
lea esi, [edi + 0x28]
call eax
push eax
call fcn.004e4e60
add ebx, ebx
test edi, edi
je 0x4f199a
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f199f
call fcn.00536646
mov eax, dword [esp + 0x88]
lea ecx, [ebx + ebx*4]
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
call edx
push eax
call fcn.004e4e60
mov ebx, 3
cmp dword [esp + 0x14], ebx
jbe 0x4f1a63
lea esi, [edi + 0x3c]
test edi, edi
je 0x4f19ee
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4f19f3
call fcn.00536646
test edi, edi
je 0x4f1a13
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebx - 2]
cmp ecx, eax
jb 0x4f1a18
call fcn.00536646
test edi, edi
je 0x4f1a35
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1a3a
call fcn.00536646
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [edi + 0x28]
push eax
lea eax, [esi - 0x28]
push eax
call edx
push eax
call fcn.004e4e60
add ebx, 2
add esi, 0x28
cmp ebx, dword [esp + 0x14]
jb 0x4f19d0
mov eax, 1
cmp dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jbe 0x4f1b57
mov eax, dword [esp + 0x34]
add eax, 0x14
mov dword [esp + 0x30], eax
lea eax, [edi + 0x14]
mov dword [esp + 0x34], eax
jmp 0x4f1a90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + edx]
cmp ebx, dword [esp + 0x20]
jae 0x4f1b35
mov esi, dword [esp + 0x30]
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
test edi, edi
je 0x4f1ad6
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x4f1adb
call fcn.00536646
test edi, edi
je 0x4f1af8
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1afd
call fcn.00536646
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
push eax
call fcn.004e4e60
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], eax
add ebx, eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x2c], eax
add esi, eax
cmp ebx, dword [esp + 0x20]
jb 0x4f1ab7
mov eax, dword [esp + 0x1c]
mov ecx, 0x28
add dword [esp + 0x30], ecx
add dword [esp + 0x34], ecx
add eax, 2
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jb 0x4f1a90
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jae 0x4f1c52
mov ecx, dword [esp + 0x14]
lea ebx, [ecx + ecx]
lea ecx, [ecx + ecx*4]
add ecx, ecx
mov edx, eax
sub eax, ebx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x30], ecx
lea ecx, [edx + edx*4]
lea edx, [eax + eax*4]
mov dword [esp + 0x88], eax
lea eax, [edi + edx*4]
lea esi, [edi + ecx*4]
mov dword [esp + 0x34], eax
test edi, edi
je 0x4f1bb8
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1bbd
call fcn.00536646
test edi, edi
lea ecx, [ebx + ebx*4]
lea edx, [edi + ecx*4]
mov dword [esp + 0x38], edx
je 0x4f1be9
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x88], eax
jb 0x4f1bee
call fcn.00536646
test edi, edi
je 0x4f1c0d
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x4f1c12
call fcn.00536646
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
call eax
push eax
call fcn.004e4e60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x88], ebx
add dword [esp + 0x34], ecx
add eax, ebx
add esi, ecx
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jb 0x4f1b9b
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x14], ecx
jae 0x4f1d57
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 2]
add ecx, ecx
lea ecx, [ecx + ecx*4]
add ecx, ecx
lea edx, [eax + eax*4]
mov dword [esp + 0x88], eax
add ecx, ecx
lea eax, [edi + edx*4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jmp 0x4f1c90
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + ebx - 2]
cmp ebx, eax
mov dword [esp + 0x38], eax
jae 0x4f1d2c
mov esi, dword [esp + 0x30]
mov edx, ebx
add edx, 0xffffffff
mov dword [esp + 0x34], edx
test edi, edi
je 0x4f1cd7
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x34], eax
jb 0x4f1cdc
call fcn.00536646
test edi, edi
je 0x4f1cf9
mov ecx, ebp
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1cfe
call fcn.00536646
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
lea edx, [esi - 0x14]
push edx
call eax
push eax
call fcn.004e4e60
add dword [esp + 0x34], 2
add ebx, 2
add esi, 0x28
cmp ebx, dword [esp + 0x38]
jb 0x4f1cb8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x88]
add ecx, ecx
add eax, ecx
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x30], ecx
mov dword [esp + 0x88], eax
add eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
jb 0x4f1c90
lea ecx, [esp + 0x54]
call fcn.004e4b00
mov eax, dword [esp + 0x3c]
lea edx, [eax - 1]
xor ebp, ebp
xor ebx, ebx
mov byte [esp + 0x74], 2
add eax, 0xffffffff
mov dword [esp + 0x30], edx
mov byte [esp + 0x88], 1
mov dword [esp + 0x34], eax
js 0x4f1eeb
mov edx, eax
jmp 0x4f1d97
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov esi, edx
shr esi, 5
cmp esi, eax
jb 0x4f1dae
xor al, al
jmp 0x4f1dc4
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, edx
and ecx, 0x1f
shr eax, cl
and al, 1
movzx eax, al
lea ecx, [eax + ebp*2]
mov eax, dword [esp + 0x8c]
cmp esi, dword [eax + 8]
mov dword [esp + 0x80], ecx
jb 0x4f1de1
xor al, al
jmp 0x4f1df9
mov ecx, eax
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, edx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0x80]
and al, 1
test edx, edx
movzx eax, al
lea ebx, [eax + ebx*2]
je 0x4f1e19
mov eax, dword [esp + 0x14]
lea esi, [ecx + ecx]
cmp esi, eax
jae 0x4f1e19
lea esi, [ebx + ebx]
cmp esi, eax
jb 0x4f1ede
mov ebp, dword [esp + 0x30]
sub ebp, edx
xor eax, eax
mov dword [esp + 0x30], edx
test ecx, ecx
jne 0x4f1e2d
test ebx, ebx
je 0x4f1e43
test cl, 1
jne 0x4f1e43
test bl, 1
jne 0x4f1e43
shr ecx, 1
shr ebx, 1
sub ebp, 1
add eax, 1
jmp 0x4f1e25
cmp byte [esp + 0x88], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], ecx
je 0x4f1f36
mov ecx, dword [esp + 0x24]
shl ebx, cl
add ebx, dword [esp + 0x80]
test edi, edi
je 0x4f1e88
mov ecx, dword [esp + 0x4c]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1e8d
call fcn.00536646
lea ecx, [ebx + ebx*4]
lea edx, [edi + ecx*4]
push edx
lea esi, [esp + 0x58]
call fcn.004e4e60
mov byte [esp + 0x88], 0
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4f1ed1
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
sub ebx, 1
call edx
push eax
lea esi, [esp + 0x58]
call fcn.004e4e60
test ebx, ebx
jne 0x4f1eb1
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x80], ebx
sub edx, 1
mov dword [esp + 0x34], edx
jns 0x4f1d90
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x54]
push eax
call fcn.004e4bc0
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], 1
mov byte [esp + 0x74], 1
call fcn.0046ae2f
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x78], 0
call fcn.004f15d0
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x14
test ebp, ebp
je 0x4f1f68
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x54]
push edx
sub ebp, 1
call eax
push eax
lea esi, [esp + 0x58]
call fcn.004e4e60
test ebp, ebp
jne 0x4f1f40
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x4f1f74
test ebx, ebx
je 0x4f1ea5
mov ecx, dword [esp + 0x24]
shl ebx, cl
add ebx, dword [esp + 0x80]
test edi, edi
je 0x4f1fa0
mov ecx, dword [esp + 0x4c]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4f1fa5
call fcn.00536646
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp]
mov edx, dword [edx + 0x20]
lea eax, [ebx + ebx*4]
lea ecx, [edi + eax*4]
push ecx
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call edx
jmp 0x4f1ea9