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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
mov dword [esp + 0x70], ecx
sar eax, 2
push edi
test eax, eax
je 0x101056ca
mov ecx, dword [esi]
mov dword [esp + 0x4c], ecx
cmp eax, 3
jbe 0x101056ca
mov eax, dword [esi + 4]
mov ecx, dword [edx]
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 4]
sub eax, ecx
mov dword [esp + 0x24], esi
sar eax, 2
cmp eax, 1
jbe 0x101056ca
mov ebx, dword [ecx + 4]
mov dword [esp + 0x6c], ebx
cmp eax, 2
jbe 0x101056ca
mov ecx, dword [ecx + 8]
lea eax, [edi + 3]
cdq
and edx, 3
mov dword [esp + 0x68], ecx
add eax, edx
sar eax, 2
mov dword [esp + 0x50], eax
shl eax, 2
cmp dword [esp + 0x4c], 0
jle 0x101056c3
mov edx, eax
mov dword [esp + 0x48], 0
imul edx, ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x40]
imul eax, edx
mov dword [esp + 0x90], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], edi
test ebx, ebx
jle 0x101056a2
mov esi, dword [ebp + 0x1c]
mov eax, esi
neg eax
mov dword [esp + 0x70], esi
shl eax, 2
mov dword [esp + 0x3c], eax
mov eax, esi
mov esi, dword [ebp + 0x14]
shl esi, 2
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x24]
test ecx, ecx
jle 0x1010567b
mov ebx, dword [ebp + 0x24]
xor edi, edi
test eax, eax
mov dword [esp + 0x64], ecx
cmovg edi, eax
add eax, edx
mov edx, dword [ebp + 0x18]
cmp eax, ebx
mov dword [esp + 0x2c], edi
cmovl ebx, eax
mov dword [esp + 0x60], edx
mov eax, ebx
mov dword [esp + 0x18], ebx
sub eax, edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x3c]
imul eax, esi
mov dword [esp + 0x7c], eax
mov eax, edx
neg eax
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x74]
imul eax, ecx
add edi, 2
add eax, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x18]
lea eax, [edx + esi]
mov esi, dword [ebp + 0x20]
xor ecx, ecx
test edx, edx
cmovg ecx, edx
cmp eax, esi
mov dword [esp + 0x58], ecx
cmovl esi, eax
mov eax, esi
mov dword [esp + 0x5c], esi
sub eax, ecx
mov dword [esp + 0x84], eax
imul eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x7c]
add eax, dword [ebp + 8]
cmp dword [esp + 0x50], 0
mov dword [esp + 0x80], eax
jle 0x10105643
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov dword [esp + 0x28], 0
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
imul eax, dword [esp + 0x6c]
shl eax, 2
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], eax
nop dword [eax]
xorps xmm0, xmm0
mov edx, edi
movlpd qword [esp + 0x98], xmm0
cmp edi, ebx
jge 0x1010550a
mov ax, word [esp + 0x9a]
mov bx, word [esp + 0x9e]
mov di, word [esp + 0x9c]
mov word [esp + 0xc], ax
mov ax, word [esp + 0x98]
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x18]
mov word [esp + 0x12], bx
mov word [esp + 0x10], di
nop
cmp ecx, esi
jge 0x101054fe
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
add eax, edx
imul eax, dword [esp + 0x24]
add eax, ecx
lea eax, [eax*4 + 2]
add eax, dword [esp + 0x80]
nop word [eax + eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
add word [esp + 0xe], cx
movzx ecx, byte [eax - 5]
add word [esp + 0xc], cx
movzx ecx, byte [eax - 4]
add di, cx
movzx ecx, byte [eax - 3]
add bx, cx
sub esi, 1
jne 0x101054c0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov word [esp + 0x10], di
mov word [esp + 0x12], bx
inc edx
cmp edx, eax
jl 0x10105490
mov ax, word [esp + 0xe]
jmp 0x10105539
mov ax, word [esp + 0x9e]
mov word [esp + 0x12], ax
mov ax, word [esp + 0x9c]
mov word [esp + 0x10], ax
mov ax, word [esp + 0x9a]
mov word [esp + 0xc], ax
mov ax, word [esp + 0x98]
movzx eax, ax
add eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x1c]
movzx esi, ax
mov eax, dword [ebp + 0x28]
mov edx, esi
movzx ecx, ax
cmp si, cx
mov eax, ecx
mov ebx, ecx
cmovb edx, eax
mov eax, dword [ebp + 0x2c]
movzx esi, ax
movzx eax, al
mov edi, esi
movzx edx, dx
cmp si, dx
movzx ecx, dl
cmovb ecx, eax
mov eax, dword [esp + 0x14]
mov byte [eax - 2], cl
movzx eax, word [esp + 0xc]
add eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x1c]
movzx ecx, ax
mov eax, ebx
cmp cx, bx
mov edx, ecx
cmovb edx, eax
mov eax, dword [ebp + 0x2c]
movzx ecx, dx
movzx eax, al
cmp si, cx
movzx edx, cl
cmovb edx, eax
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov byte [eax - 1], dl
movzx eax, word [esp + 0x10]
add eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x1c]
movzx ecx, ax
mov eax, ebx
cmp cx, bx
mov edx, ecx
cmovb edx, eax
mov eax, dword [ebp + 0x2c]
movzx ecx, dx
movzx eax, al
cmp di, cx
movzx edx, cl
cmovb edx, eax
mov eax, dword [esp + 0x14]
mov byte [eax], dl
movzx eax, word [esp + 0x12]
add eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x1c]
movzx ecx, ax
mov eax, ebx
cmp cx, bx
mov edx, ecx
mov ebx, dword [esp + 0x18]
cmovb edx, eax
mov eax, edi
movzx ecx, dx
cmp di, cx
mov edx, ecx
mov ecx, dword [esp + 0x14]
cmovb edx, eax
movzx eax, dx
mov byte [ecx + 1], al
add ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
add dword [esp + 0x28], eax
sub dword [esp + 0x54], 1
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x2c]
jne 0x10105440
mov edx, dword [esp + 0x60]
mov ecx, dword [ebp + 0x10]
sub edx, ecx
add dword [esp + 0x34], 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x60], edx
lea eax, [ecx*4]
add dword [esp + 0x30], eax
sub dword [esp + 0x64], 1
jne 0x101053b2
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x8c]
inc edi
sub eax, dword [ebp + 0x14]
add dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], edi
mov dword [esp + 0x70], eax
cmp edi, ebx
jl 0x10105345
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x90]
add eax, dword [esp + 0x94]
add dword [esp + 0x44], edi
sub dword [esp + 0x4c], 1
mov dword [esp + 0x48], eax
jne 0x10105312
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1007fa10
int3