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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
je 0x101d711
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x101d711
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x101d711
mov esi, dword [ecx]
mov edx, 0x8000
cmp esi, edx
ja 0x101d711
cmp dword [ecx + 4], edx
ja 0x101d711
mov esi, dword [ebp + 0x14]
test esi, esi
mov eax, dword [eax]
push ebx
je 0x101d463
mov edx, dword [esi]
mov ebx, dword [esi + 8]
sub eax, edx
imul eax, dword [ecx]
sub ebx, edx
xor edx, edx
inc ebx
div ebx
mov edx, dword [esi + 4]
mov esi, dword [esi + 0xc]
sub esi, edx
inc esi
mov dword [ebp - 4], eax
mov eax, dword [edi]
sub eax, edx
imul eax, dword [ecx + 4]
xor edx, edx
div esi
jmp 0x101d468
mov dword [ebp - 4], eax
mov eax, dword [edi]
movzx esi, word [ecx + 0xc]
movzx ebx, word [ecx + 8]
and dword [ebp - 0x14], 0
mov dword [ebp - 8], eax
movzx eax, word [ecx + 0xa]
mov edi, esi
lea edx, [eax + 1]
imul edi, eax
imul edx, esi
add edi, ebx
add edx, ebx
mov dword [ebp + 8], ebx
movzx ebx, word [ecx + 0xe]
add ebx, esi
test ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edi
jl 0x101d574
movzx ebx, word [ecx + edi*8 + 0x14]
mov esi, dword [ebp - 4]
cmp esi, ebx
jge 0x101d4c2
movzx ebx, word [ecx + edx*8 + 0x14]
cmp esi, ebx
jge 0x101d4c2
mov esi, dword [ebp + 8]
neg esi
sbb esi, esi
mov dword [ebp - 0x10], esi
jmp 0x101d4f1
movzx ebx, word [ecx + edi*8 + 0x1c]
cmp esi, ebx
jl 0x101d4ed
movzx ebx, word [ecx + edx*8 + 0x1c]
cmp esi, ebx
jl 0x101d4ed
mov eax, dword [ebp + 8]
movzx esi, word [ecx + 0xc]
add eax, 2
xor ebx, ebx
cmp eax, esi
mov eax, dword [ebp - 0xc]
setl bl
mov dword [ebp - 0x10], ebx
jmp 0x101d4f1
and dword [ebp - 0x10], 0
movzx ebx, word [ecx + edi*8 + 0x16]
mov esi, dword [ebp - 8]
cmp esi, ebx
jge 0x101d50e
movzx ebx, word [ecx + edi*8 + 0x1e]
cmp esi, ebx
jge 0x101d50e
mov esi, eax
neg esi
sbb esi, esi
jmp 0x101d537
movzx ebx, word [ecx + edx*8 + 0x16]
cmp esi, ebx
jl 0x101d535
movzx ebx, word [ecx + edx*8 + 0x1e]
cmp esi, ebx
jl 0x101d535
movzx esi, word [ecx + 0xe]
add eax, 2
xor ebx, ebx
cmp eax, esi
mov eax, dword [ebp - 0xc]
setl bl
mov esi, ebx
jmp 0x101d537
xor esi, esi
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x101d542
test esi, esi
je 0x101d574
add dword [ebp + 8], ebx
movzx ebx, word [ecx + 0xe]
add eax, esi
movzx esi, word [ecx + 0xc]
inc dword [ebp - 0x14]
mov edi, esi
imul edi, eax
add edi, dword [ebp + 8]
lea edx, [eax + 1]
imul edx, esi
add edx, dword [ebp + 8]
add ebx, esi
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edi
jle 0x101d4a1
lea esi, [ecx + edx*8]
movzx edx, word [esi + 0x14]
lea edi, [ecx + edi*8]
movzx eax, word [edi + 0x14]
movzx ebx, word [edi + 0x16]
mov dword [ebp - 0x14], eax
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
sub eax, ebx
imul eax, edx
movzx edx, word [esi + 0x16]
mov ebx, edx
movzx edx, word [edi + 0x16]
sub ebx, edx
cdq
idiv ebx
xor edx, edx
mov dx, word [edi + 0x14]
movzx ebx, word [edi + 0x1e]
mov dword [ebp - 0x10], ebx
add eax, edx
movzx edx, word [esi + 0x1c]
mov word [ebp - 0x2c], ax
movzx eax, word [edi + 0x1c]
mov dword [ebp - 0x18], eax
movzx eax, word [esi + 0x1e]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
sub eax, ebx
mov dword [ebp - 0x24], edx
sub edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
imul eax, edx
sub ebx, dword [ebp - 0x10]
cdq
idiv ebx
movzx ebx, word [edi + 0x16]
xor edx, edx
mov dx, word [edi + 0x1c]
add eax, edx
mov edx, dword [ebp - 0x10]
sub edx, ebx
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x14]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
imul eax, edx
cdq
idiv ebx
movzx ebx, word [esi + 0x16]
xor edx, edx
mov dx, word [edi + 0x16]
add eax, edx
movzx edx, word [esi + 0x14]
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 4]
sub eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, ebx
mov ebx, dword [ebp - 0x24]
imul eax, edx
movzx edx, word [esi + 0x14]
sub ebx, edx
cdq
idiv ebx
movzx ebx, word [ebp - 0x2c]
xor edx, edx
mov dx, word [esi + 0x16]
add eax, edx
mov word [ebp - 0x26], ax
mov ax, word [ebp + 8]
mov word [ecx + 8], ax
mov ax, word [ebp - 0xc]
mov word [ecx + 0xa], ax
mov eax, dword [ebp - 0x20]
movzx edx, word [ecx + eax*8 + 0x10]
movzx eax, word [ecx + eax*8 + 0x18]
mov dword [ebp - 0x24], edx
sub eax, edx
mov edx, dword [ebp - 4]
sub edx, ebx
imul eax, edx
movzx edx, word [ebp - 0x28]
sub edx, ebx
mov ebx, edx
cdq
idiv ebx
movzx edi, word [edi + 0x12]
mov edx, dword [ebp - 8]
mov ebx, eax
movzx eax, word [esi + 0x12]
movzx esi, word [ebp - 0x2a]
sub edx, esi
sub eax, edi
imul eax, edx
movzx edx, word [ebp - 0x26]
sub edx, esi
mov esi, edx
cdq
idiv esi
add ebx, dword [ebp - 0x24]
mov esi, eax
add esi, edi
test ebx, ebx
jge 0x101d6aa
xor ebx, ebx
jmp 0x101d6b3
mov eax, dword [ecx]
cmp ebx, eax
jl 0x101d6b3
lea ebx, [eax - 1]
test esi, esi
jge 0x101d6bb
xor esi, esi
jmp 0x101d6c5
mov eax, dword [ecx + 4]
cmp esi, eax
jl 0x101d6c5
lea esi, [eax - 1]
cmp dword [ebp + 0x18], 0
je 0x101d702
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x101d702
mov edx, dword [edi]
mov eax, dword [edi + 8]
sub eax, edx
inc eax
imul eax, ebx
xor edx, edx
div dword [ecx]
mov edx, dword [ebp + 0xc]
add eax, dword [edi]
mov dword [edx], eax
mov ebx, dword [edi + 4]
mov eax, dword [edi + 0xc]
sub eax, ebx
inc eax
imul eax, esi
xor edx, edx
div dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
add eax, ebx
mov dword [ecx], eax
jmp 0x101d70c
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop ebx
jmp 0x101d714
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x14