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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x1014be7f
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1014be92
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x10]
or edx, 0xffffffff
mov edi, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ecx
cmp ax, word [ebx]
jge 0x1014c1bf
mov eax, dword [ebx + 0xc]
inc edx
mov dword [esp + 0x30], edx
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0x28], ecx
cmp ecx, edx
jl 0x1014be73
mov eax, dword [ebx + 4]
mov ebx, 1
lea ecx, [eax + ecx*8]
lea esi, [eax + edx*8]
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
shl ebx, cl
mov ecx, ebx
mov dword [esp + 0x34], ebx
imul ecx, eax
mov eax, ebx
imul eax, edx
mov edx, ebx
sub ecx, edi
sub eax, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
imul edx, eax
mov dword [esp + 0x18], eax
mov eax, ebx
imul eax, dword [ecx + 4]
sub edx, edi
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
add edi, dword [esp + 0x30]
movsx eax, byte [edi]
and eax, 3
cmp eax, 2
je 0x1014be73
test eax, eax
jne 0x1014bf9b
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x34]
mov al, byte [eax + ecx]
and al, 3
cmp al, 1
jne 0x1014bf77
mov eax, dword [esp + 0x18]
sub dword [esp + 0xc], 8
mov dword [esp + 0x38], edx
jmp 0x1014bf93
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
sub esi, 8
mov dword [esp + 0x3c], eax
dec edi
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x1014c1c1
mov edx, dword [esp + 0xc]
cmp esi, edx
jae 0x1014c189
movsx eax, byte [edi + 1]
inc edi
add esi, 8
and eax, 3
mov ecx, esi
sub eax, 0
je 0x1014c0a5
sub eax, 1
je 0x1014c072
lea eax, [esi + 8]
cmp eax, edx
ja 0x1014be73
mov al, byte [edi + 1]
and al, 3
cmp al, 2
jne 0x1014be73
mov eax, dword [ecx]
add esi, 0x10
mov ecx, dword [esp + 0x10]
add edi, 2
imul eax, ebx
push dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esi - 0xc]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi - 8]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esi - 4]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x58], eax
cmp esi, edx
ja 0x1014c1c8
mov eax, dword [esi]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x10
jmp 0x1014c179
mov eax, dword [esi]
push dword [ebp + 0x10]
imul eax, ebx
sub eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 4]
imul eax, ebx
sub eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call eax
add esp, 8
jmp 0x1014c179
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
imul eax, ebx
sub eax, ecx
mov dword [esp + 0x40], eax
mov edx, dword [esi + 4]
imul edx, ebx
sub edx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
nop dword [eax + eax]
cmp esi, dword [esp + 0xc]
jae 0x1014c1e4
mov eax, dword [esi + 8]
add esi, 8
movsx edx, byte [edi + 1]
inc edi
imul eax, ebx
and edx, 3
sub eax, ecx
mov ecx, dword [esi + 4]
imul ecx, ebx
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
cmp edx, 1
je 0x1014c161
test edx, edx
jne 0x1014be73
add eax, dword [esp + 0x20]
push dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x1014c1c1
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
jmp 0x1014c0c4
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x1014c1c1
mov edx, dword [esp + 0xc]
cmp esi, edx
jb 0x1014bfc1
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
call eax
add esp, 8
test eax, eax
jne 0x1014c1c1
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc ecx
mov edx, dword [esp + 0x28]
movsx eax, word [ebx]
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x1014beb4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
call eax
add esp, 0x10
jmp 0x1014c19c
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call eax
add esp, 0xc
jmp 0x1014c19c