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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 8], 0x2000
movzx eax, word [ebp + 0x1c]
mov ecx, dword [ebp - 0x8c]
imul eax, dword [ecx + 0xc]
cmp dword [ebp - 8], eax
jge 0x1199e2c
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x8c]
imul edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
cdq
idiv ecx
mov dword [ebp - 4], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
cdq
idiv ecx
test edx, edx
je 0x1199e64
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc0], 0
mov dword [ecx + 0xc4], 0
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], edx
mov eax, dword [ebp - 8]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd0], eax
mov dword [ecx + 0xd4], edx
mov ecx, dword [ebp - 0x8c]
mov eax, 0x6c00
xor edx, edx
div dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xc], 0x200
jle 0x1199ed9
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [eax + 0x10]
cdq
idiv dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, 7
and edx, 0xfffffff8
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x10], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx - 1]
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xc0]
add edx, dword [ecx + 0xc8]
mov eax, dword [eax + 0xc4]
adc eax, dword [ecx + 0xcc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0xc]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x10]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xc], 0x200
jle 0x1199fc6
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x10]
cdq
idiv ecx
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x10]
cdq
idiv ecx
test edx, edx
je 0x1199fc4
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x119a013
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xc], 0x200
jne 0x119a013
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x6c00
xor edx, edx
div ecx
mov dword [ebp - 0x1c], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x6c00
xor edx, edx
div ecx
test edx, edx
je 0x119a013
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
add eax, dword [edx + 0x20]
mov ecx, dword [ecx + 0x1c]
adc ecx, dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1c]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x8c]
imul edx, dword [eax + 0xc]
mov eax, edx
imul eax, dword [ebp - 0x1c]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
movzx eax, word [ebp + 0x1c]
cdq
push edx
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sub.ntdll.dll__alldiv
push 0
push 3
push edx
push eax
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 8]
shl edx, 2
mov dword [ebp - 0x20], edx
movzx eax, word [ebp + 0x1c]
mov ecx, dword [ebp - 0x8c]
imul eax, dword [ecx + 0xc]
cmp dword [ebp - 0x20], eax
jge 0x119a0b0
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x8c]
imul edx, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
mov dword [ebp - 0x24], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x20]
cdq
idiv ecx
test edx, edx
je 0x119a0e8
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x24]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x8c]
imul edx, dword [eax + 0xc]
mov eax, edx
imul eax, dword [ebp - 0x24]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov edx, dword [ebp + 0x14]
sub edx, 1
mov eax, dword [ebp + 0x18]
sbb eax, 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 0xc]
cdq
push edx
push eax
push 0
push 0xc800000
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x90]
jg 0x119a180
jl 0x119a177
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x94]
ja 0x119a180
mov dword [ebp - 0x34], 0x1000
jmp 0x119a1f4
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 0xc]
cdq
push edx
push eax
push 3
push 0
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x98]
jg 0x119a1e2
jl 0x119a1b9
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x9c]
ja 0x119a1e2
push 0
push 0xc3
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1000
jge 0x119a1e0
mov dword [ebp - 0x34], 0x1000
jmp 0x119a1f4
mov ecx, dword [ebp - 0x8c]
mov eax, 0x4000000
cdq
idiv dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
movzx ecx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
mov dword [ebp - 0x38], eax
movzx ecx, word [ebp + 0x1c]
mov eax, dword [ebp - 0x34]
cdq
idiv ecx
test edx, edx
je 0x119a218
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x30]
add edx, dword [ecx + 0x38]
mov eax, dword [eax + 0x34]
adc eax, dword [ecx + 0x3c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], edx
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0x38]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x34]
imul eax, dword [edx + 0xc]
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
lea eax, [eax + ecx - 1]
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
sub ecx, 1
not ecx
and eax, ecx
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0xa00
xor edx, edx
div ecx
mov dword [ebp - 0x44], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0xa00
xor edx, edx
div ecx
test edx, edx
je 0x119a2bc
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
add eax, dword [edx + 0x50]
mov ecx, dword [ecx + 0x4c]
adc ecx, dword [edx + 0x54]
mov edx, dword [ebp + 8]
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 0x44]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x70], 0xa00
mov dword [edx + 0x74], 0
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x1030
xor edx, edx
div ecx
mov dword [ebp - 0x48], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x1030
xor edx, edx
div ecx
test edx, edx
je 0x119a333
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x60]
add eax, dword [edx + 0x68]
mov ecx, dword [ecx + 0x64]
adc ecx, dword [edx + 0x6c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], eax
mov dword [edx + 0x7c], ecx
mov eax, dword [ebp - 0x48]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
mov dword [ecx + 0x84], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x88], 0x1030
mov dword [edx + 0x8c], 0
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x1000
xor edx, edx
div ecx
mov dword [ebp - 0x4c], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov eax, 0x1000
xor edx, edx
div ecx
test edx, edx
je 0x119a3b6
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
add eax, dword [edx + 0x80]
mov ecx, dword [ecx + 0x7c]
adc ecx, dword [edx + 0x84]
mov edx, dword [ebp + 8]
mov dword [edx + 0x90], eax
mov dword [edx + 0x94], ecx
mov eax, dword [ebp - 0x4c]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x98], eax
mov dword [ecx + 0x9c], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0xa0], 0x1000
mov dword [edx + 0xa4], 0
mov eax, dword [ebp + 0x14]
sub eax, 1
mov ecx, dword [ebp + 0x18]
sbb ecx, 0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
movzx eax, word [ebp + 0x1c]
cdq
push edx
push eax
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
push eax
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x60]
add ecx, 7
mov edx, dword [ebp - 0x5c]
adc edx, 0
and ecx, 0xfffffff8
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
push 0
push 8
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x58]
add edx, 7
mov eax, dword [ebp - 0x54]
adc eax, 0
and edx, 0xfffffff8
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
movzx ecx, word [ebp + 0x1c]
mov edx, dword [ebp - 0x8c]
imul ecx, dword [edx + 0xc]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cdq
push edx
push eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call sub.ntdll.dll__alldiv
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x50]
cdq
push edx
push eax
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x58]
push eax
call sub.ntdll.dll__allrem
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
mov ecx, dword [ebp - 0xa4]
or ecx, dword [ebp - 0xa0]
je 0x119a4dd
mov edx, dword [ebp - 0x70]
add edx, 1
mov eax, dword [ebp - 0x6c]
adc eax, 0
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x90]
add eax, dword [edx + 0x98]
mov ecx, dword [ecx + 0x94]
adc ecx, dword [edx + 0x9c]
mov edx, dword [ebp + 8]
mov dword [edx + 0xa8], eax
mov dword [edx + 0xac], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0xb0], ecx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0xb4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0xb8], ecx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0xbc], edx
movzx eax, word [ebp + 0x1c]
mov ecx, dword [ebp - 0x8c]
imul eax, dword [ecx + 0xc]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 0x400fc
mov eax, dword [ebp - 0x78]
cdq
idiv dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
cdq
idiv dword [ebp - 0x74]
test edx, edx
je 0x119a56a
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xa8]
add edx, dword [ecx + 0xb0]
mov eax, dword [eax + 0xac]
adc eax, dword [ecx + 0xb4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd8], edx
mov dword [ecx + 0xdc], eax
mov eax, dword [ebp - 0x7c]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe0], eax
mov dword [ecx + 0xe4], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0xe8], 0x400fc
mov dword [edx + 0xec], 0
movzx eax, word [ebp + 0x1c]
mov ecx, dword [ebp - 0x8c]
imul eax, dword [ecx + 0xc]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], 0x20000
mov eax, dword [ebp - 0x84]
cdq
idiv dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
cdq
idiv dword [ebp - 0x80]
test edx, edx
je 0x119a609
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xd8]
add edx, dword [ecx + 0xe0]
mov eax, dword [eax + 0xdc]
adc eax, dword [ecx + 0xe4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xf0], edx
mov dword [ecx + 0xf4], eax
mov eax, dword [ebp - 0x88]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x100], 0x20000
mov dword [edx + 0x104], 0
mov esp, ebp
pop ebp
ret 0x18