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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0xc8]
push ebx
push ebp
mov ebp, dword [eax + 0x148]
push esi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x70]
push edi
mov edi, dword [eax + 0xfc]
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], ebp
mov ebx, 1
je 0x4a68e8
cmp word [ecx + 0x1c], bx
jne 0x4a68e2
cmp dword [ecx], ebx
je 0x4a68e8
mov dword [esp + 0x34], edx
jmp 0x4a68ec
mov dword [esp + 0x34], ebx
cmp dword [0x6bf240], edx
jne 0x4a6935
cmp dword [0x6bf230], edx
jne 0x4a6935
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x68]
cmp eax, 4
mov esi, dword [esp + 0x6c]
jne 0x4a6920
mov cl, byte [esi + 0x1c]
test cl, cl
mov dword [esp + 0x44], ebx
jne 0x4a6924
mov dword [esp + 0x44], edx
dec eax
cmp eax, 6
ja case.default.0x4a692e
jmp dword [eax*4 + 0x4a71d0]
mov eax, dword [eax + 0x8c]
cmp eax, edx
mov dword [esp + 0x48], eax
je 0x4a6900
mov ecx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
jmp 0x4a6908
fild dword [esp + 0x70]
sub esp, 8
fstp qword [esp + 0x5c]
fld dword [esi + 8]
fstp qword [esp]
call fcn.005386b0
fadd qword [esp + 0x5c]
fild dword [edi + 4]
fstp qword [esp + 0x54]
fdiv qword [esp + 0x54]
call fcn.00667ad0
fld dword [esi + 0x10]
mov ebx, eax
fstp qword [esp]
mov dword [esp + 0x30], ebx
call fcn.00538660
fadd qword [esp + 0x5c]
fild dword [edi + 4]
fstp qword [esp + 0x5c]
fdiv qword [esp + 0x5c]
call fcn.00667ad0
fld dword [esi + 0x10]
fsub dword [esi + 8]
mov dword [esp + 0x2c], eax
fstp qword [esp]
call fcn.00538660
add esp, 8
call fcn.00667ad0
mov dword [esp + 0x38], eax
jmp 0x4a69f6
mov ecx, dword [esp + 0x6c]
mov esi, dword [ecx + 0x50]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
mov edi, dword [edx + 4]
add eax, esi
cdq
idiv edi
mov ecx, dword [ecx + 0x54]
mov edx, dword [esp + 0x70]
mov ebx, eax
mov dword [esp + 0x28], ebx
lea eax, [ecx + edx]
cdq
idiv edi
sub ecx, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
test ebx, ebx
jge 0x4a6a00
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x24], ebx
jl 0x4a71c6
cmp dword [ebp], 1
mov dword [esp + 0x10], 1
jl 0x4a71c6
lea esp, [esp]
mov ecx, dword [esp + 0x78]
test byte [ecx + 0x1c], 1
mov dword [esp + 0x14], 0
je 0x4a6a51
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 4]
cmp eax, 0x7fffffff
je 0x4a6a51
test eax, eax
jle 0x4a6a51
cmp eax, dword [esp + 0x10]
jne 0x4a71b2
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
push edx
push ecx
call fcn.004a66f0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
lea eax, [ebx + ebx*4]
shl eax, 4
add eax, edx
add esp, 8
cmp ebx, ecx
mov edi, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], eax
jg 0x4a71b2
jmp 0x4a6a90
mov edx, dword [esp + 0x1c]
cmp eax, dword [edx + 0x14]
jae 0x4a71b2
mov ecx, dword [eax + 0x4c]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x54], ecx
jl 0x4a6c82
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
dec esi
test eax, eax
je 0x4a6b87
mov eax, dword [ebp + 0xc]
jmp 0x4a6b8a
mov ecx, dword [esp + 0x6c]
movsx esi, word [ecx]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 4]
mov edx, dword [esp + 0x70]
lea eax, [esi + edx]
cdq
idiv edi
movsx ecx, word [ecx + 2]
mov ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], ebx
lea eax, [ecx + eax - 1]
jmp 0x4a69e9
mov ecx, dword [esp + 0x6c]
movsx esi, word [ecx + 4]
movsx ecx, word [ecx + 6]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 4]
add eax, esi
cdq
idiv edi
mov edx, dword [esp + 0x70]
mov ebx, eax
mov dword [esp + 0x28], ebx
lea eax, [ecx + edx - 1]
jmp 0x4a69e9
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 4]
mov edx, dword [esp + 0x70]
lea eax, [ecx + edx]
cdq
idiv esi
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, dword [edi + 8]
movzx edi, word [eax + 2]
add ecx, edi
lea eax, [ecx + edx - 1]
cdq
mov dword [esp + 0x28], ebx
idiv esi
mov dword [esp + 0x38], edi
jmp 0x4a69f2
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x18]
movsx esi, word [ecx]
movsx ecx, word [ecx + 2]
jmp 0x4a6b04
push 0xf100100c
call fcn.0044b1f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [ebp + 8]
mov edx, dword [eax + esi*4]
mov ebx, dword [edx + edi*4]
xor eax, eax
test ebx, ebx
setge al
test eax, eax
je 0x4a6c82
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x20]
test edx, edx
jne 0x4a6c82
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a6c82
cmp eax, 5
je 0x4a6c82
cmp eax, 7
je 0x4a6c82
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x4a6c82
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x48]
add ecx, 0xc4
push ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc8]
push edx
call dword [eax + 8]
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4a6c82
push esi
push edi
mov eax, ebp
call fcn.004a67e0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4a6c3e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6c32
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + esi*4]
cmp dword [eax + edi*4], 0
je 0x4a6c3e
push esi
push edi
mov eax, ebp
call fcn.004a6840
add esp, 8
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4a6c52
push esi
push edi
mov eax, ebp
call fcn.004a6870
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4a6c5e
test ebx, ebx
je 0x4a6c82
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6c72
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + esi*4]
cmp dword [edx + edi*4], 0
je 0x4a6c82
mov edx, dword [esp + 0x14]
push esi
push edi
mov eax, ebp
call fcn.004a6810
add esp, 8
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4a6d9b
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 - 4]
dec esi
lea ecx, [edi*4]
mov edx, dword [eax + ecx]
add eax, ecx
test edx, edx
jl 0x4a6cb6
test ebx, ebx
jge 0x4a6cb2
mov dword [eax], ebx
jmp 0x4a6cb6
add edx, ebx
mov dword [eax], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a6d1e
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a6cce
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4]
jmp 0x4a6ced
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a6ce7
cmp eax, 7
jne 0x4a6cfe
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x64]
test edx, edx
je 0x4a6d12
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
mov edx, dword [eax + ecx]
add eax, ecx
test edx, edx
jl 0x4a6d1e
test ebx, ebx
jge 0x4a6d1a
mov dword [eax], ebx
jmp 0x4a6d1e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6d12
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + esi*4]
cmp dword [ecx + eax], 0
je 0x4a6d1e
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*4]
jmp 0x4a6ced
add edx, ebx
mov dword [eax], edx
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4a6d41
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + esi*4]
mov edx, dword [eax + ecx]
add eax, ecx
test edx, edx
jl 0x4a6d41
test ebx, ebx
jge 0x4a6d3d
mov dword [eax], ebx
jmp 0x4a6d41
add edx, ebx
mov dword [eax], edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4a6d51
test edi, edi
je 0x4a718e
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a6d77
cmp eax, 7
je 0x4a6d77
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6d77
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + esi*4]
cmp dword [ecx + edx], 0
je 0x4a718e
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + esi*4]
add eax, ecx
mov ecx, dword [eax]
test ecx, ecx
jl 0x4a718e
test ebx, ebx
jge 0x4a6d94
mov dword [eax], ebx
jmp 0x4a718e
add ecx, ebx
jmp 0x4a718c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a6e29
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a6dd0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
dec eax
mov edx, dword [ecx + eax*4]
lea ebx, [eax*4]
shl esi, 2
mov eax, dword [esi + edx]
jmp 0x4a6e67
mov eax, dword [esp + 0x68]
cmp eax, 4
jne 0x4a6dea
mov eax, dword [esp + 0x10]
dec eax
lea ebx, [eax*4]
mov eax, dword [ebp + 0x10]
jmp 0x4a6e5a
cmp eax, 7
jne 0x4a6e0b
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x64]
test eax, eax
je 0x4a6e0b
mov eax, dword [esp + 0x10]
dec eax
lea ebx, [eax*4]
mov eax, dword [ebp + 0x10]
jmp 0x4a6e5a
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
dec eax
lea ebx, [eax*4]
mov eax, dword [edx + ebx]
shl esi, 2
mov eax, dword [esi + eax]
jmp 0x4a6e67
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4a6e4f
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 0x18]
dec eax
mov edx, dword [ecx + eax*4]
lea ebx, [eax*4]
shl esi, 2
mov eax, dword [esi + edx]
jmp 0x4a6e67
dec eax
lea ebx, [eax*4]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + ebx]
shl esi, 2
mov eax, dword [esi + ecx]
test eax, eax
mov dword [esp + 0x2c], ebx
jl 0x4a718e
mov edx, dword [ebp + 8]
mov eax, dword [ebx + edx]
cmp dword [esi + eax], 0
mov ecx, dword [esp + 0x40]
jne 0x4a6eb5
cmp dword [ecx], 1
je 0x4a6eb5
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a6eb5
cmp eax, 7
je 0x4a6eb5
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a6eb5
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x4a6eb5
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a718e
mov eax, dword [esp + 0x68]
dec eax
cmp eax, 6
ja case.default.0x4a6ec3
jmp dword [eax*4 + 0x4a71ec]
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [esp + 0x14]
jmp 0x4a6f6b
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xfc]
test ecx, ecx
je 0x4a6f62
mov edx, dword [esp + 0x10]
push edx
mov edx, eax
mov edi, dword [edx + 0x50]
mov eax, dword [edx + 0x54]
sub eax, edi
cdq
idiv dword [ecx + 4]
mov edi, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x148]
call fcn.004a67a0
add esp, 4
jmp 0x4a6f39
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [edx + 0xc8]
push eax
push 1
call dword [ecx + 4]
add esp, 0x18
mov dword [esp + 0x14], eax
mov edx, eax
test edx, edx
jle 0x4a6f60
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jle 0x4a6f5e
imul eax, edx
cdq
idiv ecx
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jne 0x4a6f6b
mov edx, 1
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 8]
mov eax, dword [ebx + eax]
mov ecx, dword [eax + esi]
add eax, esi
test ecx, ecx
jl 0x4a70b6
test edx, edx
jge 0x4a70b2
mov dword [eax], edx
jmp 0x4a70b6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [edx + 0xc8]
push eax
push 2
jmp 0x4a6f33
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
movzx ecx, word [edx]
lea edi, [ecx + eax - 1]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4a701d
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x4a705c
mov ecx, dword [ecx + 0x20]
movsx ebx, word [ecx + 4]
cmp ebx, eax
jg 0x4a7019
movsx ebx, word [ecx + 6]
cmp ebx, eax
jg 0x4a7019
movsx eax, word [ecx + 0x10]
cmp eax, edi
jl 0x4a7019
movsx eax, word [ecx + 0x12]
cmp eax, edi
jl 0x4a7019
movsx eax, word [ecx]
cmp eax, ebp
jg 0x4a7019
movzx edx, word [edx + 2]
movsx ecx, word [ecx + 2]
lea eax, [edx + ebp - 1]
cmp ecx, eax
jl 0x4a7019
mov ebx, dword [esp + 0x2c]
xor eax, eax
jmp 0x4a7022
mov ebx, dword [esp + 0x2c]
mov eax, 1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [edx + 0xc8]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x50]
setne dl
push ecx
add edx, 3
push edx
call dword [eax + 4]
mov ebp, dword [esp + 0x74]
jmp 0x4a6f36
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0x34], eax
jg 0x4a701d
cmp dword [ecx + 0x38], edi
jl 0x4a701d
xor eax, eax
jmp 0x4a7022
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [edx + 0xc8]
push eax
push 5
call dword [ecx + 4]
mov edx, eax
add esp, 0x18
mov dword [esp + 0x14], edx
jmp 0x4a6f3f
push 0xf100100c
call fcn.0044b1f0
add esp, 4
jmp 0x4a6f62
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a711e
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a70ce
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + ebx]
jmp 0x4a70ed
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a70e7
cmp eax, 7
jne 0x4a70fe
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x4a7112
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + ebx]
mov ecx, dword [eax + esi]
add eax, esi
test ecx, ecx
jl 0x4a711e
test edx, edx
jge 0x4a711a
mov dword [eax], edx
jmp 0x4a711e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a7112
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + ebx]
cmp dword [esi + eax], 0
je 0x4a711e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + ebx]
jmp 0x4a70ed
add ecx, edx
mov dword [eax], ecx
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4a7141
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + ebx]
mov ecx, dword [eax + esi]
add eax, esi
test ecx, ecx
jl 0x4a7141
test edx, edx
jge 0x4a713d
mov dword [eax], edx
jmp 0x4a7141
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4a714d
test edi, edi
je 0x4a718e
mov eax, dword [esp + 0x68]
cmp eax, 4
je 0x4a716f
cmp eax, 7
je 0x4a716f
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a716f
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ebx]
cmp dword [esi + eax], 0
je 0x4a718e
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + ebx]
mov ecx, dword [eax + esi]
add eax, esi
test ecx, ecx
jl 0x4a718e
mov edx, dword [esp + 0x14]
test edx, edx
jge 0x4a718a
mov dword [eax], edx
jmp 0x4a718e
add ecx, edx
mov dword [eax], ecx
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
inc edi
add eax, 0x50
cmp edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], eax
jle 0x4a6a90
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4a6a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret