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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x58]
imul edx, eax, 0x1600
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x44]
push edi
mov ebp, dword [edx + ecx + 0x15c8]
xor edx, edx
div dword [ebx + 0x18]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0xc]
imul ecx, edx
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 + 0x60]
add eax, dword [ebx + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x70]
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 + 0x74]
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 + 0x78]
mov dword [eax], ecx
mov eax, dword [esp + 0x84]
mov dword [eax], 0
mov eax, dword [esp + 0x88]
mov dword [eax], 0
mov eax, dword [esp + 0x7c]
mov dword [eax], 0x7fffffff
mov eax, dword [esp + 0x80]
mov dword [eax], 0x7fffffff
xor eax, eax
mov dword [esp + 0x34], eax
cmp dword [esi + 0x10], eax
jbe 0x100d406b
mov ecx, dword [esp + 0x14]
add ebp, 4
mov dword [esp + 0x10], ebp
nop dword [eax]
mov edx, dword [esp + 0x8c]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, dword [ebp]
mov ebx, dword [edx + eax*4]
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
dec eax
add eax, edi
cdq
idiv edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
dec eax
add eax, esi
cdq
idiv esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
dec eax
add eax, edi
cdq
idiv edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
dec eax
add eax, esi
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x88]
cmp ecx, dword [eax]
jbe 0x100d3e2d
mov dword [eax], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x2c], 0
lea edi, [ecx - 1]
mov dword [esp + 0x68], edi
test ecx, ecx
je 0x100d4040
mov eax, dword [esp + 0x64]
mov ecx, edi
cdq
mov ebp, 1
rol ebp, cl
sub eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
sbb edx, 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
cdq
sub eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
sbb edx, 0
mov dword [esp + 0x44], edx
cdq
sub eax, 1
mov dword [esp + 0x48], eax
mov eax, esi
sbb edx, 0
mov dword [esp + 0x4c], edx
cdq
sub eax, 1
mov dword [esp + 0x50], eax
mov eax, edx
sbb eax, 0
add ecx, 0x3ac
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], ecx
nop word [eax + eax]
mov eax, dword [ecx - 0x84]
mov esi, dword [ecx]
mov dword [ebx], eax
mov dword [esp + 0x1c], eax
lea ecx, [eax + edi]
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], esi
mov edx, dword [eax]
shl edx, cl
lea ecx, [esi + edi]
mov esi, dword [eax + 4]
mov eax, ebp
shl esi, cl
mov ecx, dword [esp + 0x7c]
cmp dword [ecx], edx
cmovl edx, dword [ecx]
mov dword [ecx], edx
mov ecx, dword [esp + 0x80]
cdq
mov edi, edx
mov edx, dword [esp + 0x3c]
cmp dword [ecx], esi
cmovl esi, dword [ecx]
mov dword [ecx], esi
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
add eax, esi
adc edx, edi
call fcn.101f6860
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
add eax, esi
adc edx, edi
mov edi, dword [esp + 0x68]
mov ecx, edi
call fcn.101f6860
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
sar eax, cl
shl eax, cl
mov dword [esp + 0x58], eax
mov eax, 1
shl eax, cl
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x24]
cdq
add eax, ecx
mov ecx, dword [esp + 0x64]
adc edx, esi
sub eax, 1
sbb edx, 0
call fcn.101f6860
mov ecx, dword [esp + 0x64]
mov esi, eax
mov eax, dword [esp + 0x18]
shl esi, cl
cmp dword [esp + 0x20], eax
jne 0x100d3fa8
xor eax, eax
jmp 0x100d3fea
mov ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x18]
cdq
add eax, ecx
adc edx, edi
mov edi, dword [esp + 0x1c]
sub eax, 1
mov ecx, edi
sbb edx, 0
call fcn.101f6860
mov edx, dword [esp + 0x20]
mov ecx, edi
mov edi, dword [esp + 0x68]
sar edx, cl
shl eax, cl
shl edx, cl
sub eax, edx
sar eax, cl
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x28], edx
jne 0x100d3ff8
xor esi, esi
jmp 0x100d3ffe
sub esi, dword [esp + 0x58]
sar esi, cl
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], esi
add ebx, 0x10
imul esi, eax
mov eax, dword [esp + 0x84]
cmp esi, dword [eax]
jbe 0x100d4017
mov dword [eax], esi
mov eax, dword [esp + 0x2c]
dec edi
mov edx, dword [esp + 0x10]
inc eax
mov ecx, dword [esp + 0x30]
add ecx, 4
ror ebp, 1
mov dword [esp + 0x68], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp eax, dword [edx]
jb 0x100d3eb0
mov ebp, edx
mov eax, dword [esp + 0x34]
add ebp, 0x438
mov edx, dword [esp + 0x60]
inc eax
mov ecx, dword [esp + 0x14]
add ecx, 0x34
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
cmp eax, dword [edx + 0x10]
jb 0x100d3dd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret