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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x10070e0f
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10070e22
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x10]
xor edx, edx
mov ebx, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x30], ecx
cmp ax, word [esi]
jge 0x10071175
nop word [eax + eax]
mov eax, dword [esi + 0xc]
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0x2c], ecx
test ecx, ecx
js 0x10070e03
mov eax, dword [esi + 4]
mov edi, 1
lea ecx, [eax + ecx*8]
lea esi, [eax + edx*8]
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov edx, dword [esi + 4]
shl edi, cl
mov ecx, edi
mov dword [esp + 0x14], edi
imul ecx, eax
mov eax, edi
imul eax, edx
mov edx, dword [esp + 0x18]
sub ecx, ebx
sub eax, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov eax, edi
imul eax, dword [edx]
mov dword [esp + 0x34], ecx
sub eax, ebx
mov dword [esp + 0x1c], eax
mov eax, edi
imul eax, dword [edx + 4]
mov dword [esp + 0x40], ecx
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
movsx eax, byte [ecx]
and eax, 3
cmp eax, 2
je 0x10070e03
test eax, eax
jne 0x10070f40
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x10]
mov al, byte [eax + edi]
mov edi, dword [esp + 0x14]
and al, 3
cmp al, 1
mov eax, dword [esp + 0x1c]
jne 0x10070f1a
sub edx, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
jmp 0x10070f34
add eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
sub esi, 8
mov dword [esp + 0x3c], eax
dec ecx
mov dword [esp + 0xc], ecx
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 0x10071177
mov edx, dword [esp + 0x18]
cmp esi, edx
jae 0x1007113a
mov ecx, dword [esp + 0xc]
add esi, 8
inc ecx
mov dword [esp + 0xc], ecx
movsx eax, byte [ecx]
and eax, 3
sub eax, 0
je 0x10071059
sub eax, 1
je 0x10071022
lea eax, [esi + 8]
cmp eax, edx
ja 0x10070e03
mov al, byte [ecx + 1]
and al, 3
cmp al, 2
jne 0x10070e03
mov eax, dword [esi]
add esi, 0x10
push dword [ebp + 0x10]
add ecx, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esi - 0xc]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esi - 8]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esi - 4]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x58], eax
cmp esi, edx
ja 0x1007117e
mov eax, dword [esi]
shl eax, cl
sub eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
shl eax, cl
sub eax, ebx
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
test eax, eax
jne 0x10071177
jmp 0x1007112e
mov eax, dword [esi]
push dword [ebp + 0x10]
imul eax, edi
sub eax, ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 4]
imul eax, edi
sub eax, ebx
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
test eax, eax
jne 0x10071177
jmp 0x1007112e
mov edi, dword [esi]
imul edi, dword [esp + 0x14]
sub edi, ebx
mov dword [esp + 0x40], edi
mov ebx, dword [esi + 4]
imul ebx, dword [esp + 0x14]
sub ebx, dword [esp + 0x10]
mov dword [esp + 0x44], ebx
cmp esi, edx
jae 0x1007119a
movsx edx, byte [ecx + 1]
inc ecx
mov eax, dword [esi + 8]
add esi, 8
imul eax, dword [esp + 0x14]
and edx, 3
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 4]
imul ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
cmp edx, 1
je 0x1007110a
test edx, edx
jne 0x10070e03
push dword [ebp + 0x10]
add eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
lea eax, [ecx + ebx]
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 0x10071177
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], edi
jmp 0x10071072
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 0x10071177
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp esi, edx
jb 0x10070f66
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 0x10071177
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
inc ecx
mov ebx, dword [esp + 0x10]
inc edx
movsx eax, word [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 0x30], ecx
cmp ecx, eax
jl 0x10070e50
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 0x1007114d
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 0x1007114d