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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x50]
imul edx, eax, 0x1600
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ecx, dword [ebx + 0x44]
push edi
mov dword [esp + 0x24], 0
mov ebp, dword [esi + 0x18]
mov ecx, dword [edx + ecx + 0x15c8]
xor edx, edx
div dword [ebx + 0x18]
mov esi, dword [esi]
mov dword [esp + 0x60], ecx
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x64]
imul ecx, edx
mov dword [esp + 0x10], ebp
add ecx, dword [ebx + 4]
cmp ecx, esi
cmovg esi, ecx
mov dword [eax], esi
lea eax, [edx + 1]
imul eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x58]
add eax, dword [ebx + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 4]
imul eax, edi
add eax, dword [ebx + 8]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [eax], ecx
lea eax, [edi + 1]
imul eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0xc]
add eax, dword [ebx + 8]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x70]
mov dword [eax], ecx
mov eax, dword [esp + 0x7c]
mov dword [eax], 0
mov eax, dword [esp + 0x80]
mov dword [eax], 0
mov eax, dword [esp + 0x74]
mov dword [eax], 0x7fffffff
mov eax, dword [esp + 0x78]
mov dword [eax], 0x7fffffff
cmp dword [esi + 0x10], 0
jbe 0x100d43b8
mov ebx, dword [esp + 0x60]
add ebx, 4
mov dword [esp + 0x20], ebx
nop
mov eax, dword [esp + 0x64]
mov edi, dword [ebp]
mov esi, dword [ebp + 4]
mov ecx, dword [ebx]
mov eax, dword [eax]
dec eax
add eax, edi
cdq
idiv edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
dec eax
add eax, esi
cdq
idiv esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
dec eax
add eax, edi
cdq
idiv edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
dec eax
add eax, esi
cdq
idiv esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
cmp ecx, dword [eax]
jbe 0x100d41b5
mov dword [eax], ecx
mov esi, dword [ebx]
xor edi, edi
mov dword [esp + 0x18], edi
test esi, esi
je 0x100d4391
mov eax, dword [esp + 0x60]
cdq
sub eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
sbb edx, edi
mov dword [esp + 0x2c], edx
cdq
sub eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
sbb edx, edi
mov dword [esp + 0x34], edx
cdq
sub eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
sbb edx, edi
mov dword [esp + 0x3c], edx
cdq
sub eax, 1
mov dword [esp + 0x40], eax
mov eax, edx
sbb eax, edi
mov dword [esp + 0x44], eax
lea eax, [ebx + 0x3ac]
mov dword [esp + 0x1c], eax
nop dword [eax]
mov ebp, dword [eax - 0x84]
sub esi, edi
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
lea ecx, [ebp - 1]
add ecx, esi
mov edx, dword [edx]
shl edx, cl
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
add ecx, esi
mov esi, dword [eax + 4]
mov eax, 1
shl esi, cl
mov ecx, dword [esp + 0x74]
cmp dword [ecx], edx
cmovb edx, dword [ecx]
mov dword [ecx], edx
mov ecx, dword [esp + 0x78]
cmp dword [ecx], esi
cmovb esi, dword [ecx]
mov dword [ecx], esi
mov ebx, dword [ebx]
sub ebx, edi
dec ebx
mov ecx, ebx
shl eax, cl
cdq
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x34]
mov ecx, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edi, dword [esp + 0x5c]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, edi
sar eax, cl
shl eax, cl
mov dword [esp + 0x50], eax
mov eax, 1
shl eax, cl
cdq
mov ecx, eax
mov dword [esp + 0x4c], ebx
mov esi, edx
mov eax, ebx
cdq
add eax, ecx
mov ecx, edi
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.101f6860
mov esi, eax
mov ecx, edi
shl esi, cl
mov ebx, dword [esp + 0x48]
cmp ebx, dword [esp + 0x60]
jne 0x100d4314
xor eax, eax
jmp 0x100d4348
mov ecx, ebp
mov eax, 1
shl eax, cl
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x60]
cdq
add eax, ecx
mov ecx, ebp
adc edx, edi
sub eax, 1
sbb edx, 0
call fcn.101f6860
mov edi, dword [esp + 0x5c]
mov ecx, ebp
sar ebx, cl
shl eax, cl
shl ebx, cl
sub eax, ebx
sar eax, cl
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x14], ecx
jne 0x100d4356
xor esi, esi
jmp 0x100d435e
sub esi, dword [esp + 0x50]
mov ecx, edi
sar esi, cl
imul esi, eax
mov eax, dword [esp + 0x7c]
cmp esi, dword [eax]
jbe 0x100d436b
mov dword [eax], esi
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc edi
add eax, 4
mov dword [esp + 0x18], edi
mov esi, dword [ebx]
mov dword [esp + 0x1c], eax
cmp edi, esi
jb 0x100d4220
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ebp, 0x34
mov ecx, dword [esp + 0x58]
inc eax
add ebx, 0x438
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
cmp eax, dword [ecx + 0x10]
jb 0x100d4160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret