Function at 0x100a4edc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x34], 0x20
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x28]
shr ecx, 2
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0x3d0900
jge 0x100a4f1d
mov dword [ebp - 0x38], 0x3d0900
push 0xb4
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x100a4f4f
push 0xb4
push 0x10119e98
call fcn.10004d30
add esp, 8
mov eax, 4
jmp 0x100a5ac3
push 0xb4
push 0
mov edx, dword [ebp - 0x54]
push edx
call fcn.100f1b90
add esp, 0xc
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x54]
mov dword [ecx], 9
mov edx, dword [ebp - 0x54]
mov dword [edx + 4], 0
call fcn.10078a50
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
push edx
call fcn.100b2605
add esp, 4
mov eax, dword [ebp - 0x54]
fstp dword [eax + 0x24]
mov ecx, dword [ebp + 8]
push ecx
call fcn.100b2605
add esp, 4
mov edx, dword [ebp - 0x54]
fstp dword [edx + 0x28]
mov eax, dword [ebp + 8]
push eax
call fcn.100b2605
add esp, 4
mov ecx, dword [ebp - 0x54]
fstp dword [ecx + 0x2c]
mov edx, dword [ebp + 8]
push edx
call fcn.100b2605
add esp, 4
mov eax, dword [ebp - 0x54]
fstp dword [eax + 0x30]
mov ecx, dword [ebp + 8]
push ecx
call fcn.100b2605
add esp, 4
mov edx, dword [ebp - 0x54]
fstp dword [edx + 0x34]
mov eax, dword [ebp + 8]
push eax
call fcn.100b2605
add esp, 4
mov ecx, dword [ebp - 0x54]
fstp dword [ecx + 0x38]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
fld dword [edx + 0x2c]
fsub dword [eax + 0x24]
fdiv dword [0x10100338]
mov ecx, dword [ebp - 0x54]
fadd dword [ecx + 0x24]
fstp dword [ebp - 8]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
fld dword [edx + 0x30]
fsub dword [eax + 0x28]
fdiv dword [0x10100338]
mov ecx, dword [ebp - 0x54]
fadd dword [ecx + 0x28]
fstp dword [ebp - 0x10]
mov edx, dword [ebp - 0x54]
fld dword [ebp - 8]
fsub dword [edx + 0x34]
fadd st(0), st(0)
mov eax, dword [ebp - 0x54]
fadd dword [eax + 0x34]
mov ecx, dword [ebp - 0x54]
fstp dword [ecx + 0x3c]
mov edx, dword [ebp - 0x54]
fld dword [ebp - 0x10]
fsub dword [edx + 0x38]
fadd st(0), st(0)
mov eax, dword [ebp - 0x54]
fadd dword [eax + 0x38]
mov ecx, dword [ebp - 0x54]
fstp dword [ecx + 0x40]
mov edx, dword [ebp + 8]
push edx
call fcn.100b3069
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100b3069
add esp, 4
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100b3069
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100af25c
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x10c]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x10c]
test eax, eax
jne 0x100a50ec
cmp dword [ebp - 0x44], 0
jne 0x100a50ec
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xaa]
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x54], edx
jmp 0x100a5111
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x10c]
cmp edx, 1
jne 0x100a5111
cmp dword [ebp - 0x44], 0
jne 0x100a5111
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa6]
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x54], ecx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x9e]
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x58], ecx
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp + 8]
fld dword [ecx + 0xc4]
call fcn.100f0f10
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x78], eax
call fcn.1007ec39
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 4
jne 0x100a52a8
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x54], 8
jne 0x100a5235
mov ecx, dword [ebp + 8]
fld dword [ecx + 0xc4]
fcomp dword [0x101079c4]
fnstsw ax
test ah, 0x41
jne 0x100a5235
mov dword [ebp - 0x74], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xbc]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc0]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc4]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc8]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xcc]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0xb8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc0], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xc4], 0x437f0000
mov eax, dword [ebp + 8]
mov dword [eax + 0xc8], 0x437f0000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xcc], 0x437f0000
push 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.10001f70
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
cmp dword [ebp - 0x74], 1
jne 0x100a52a0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0xb8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0xbc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x78]
mov dword [edx + 0xc0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x70]
mov dword [ecx + 0xc4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0xc8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x60]
mov dword [edx + 0xcc], eax
mov eax, dword [ebp - 0x5c]
jmp 0x100a5ac3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 5
jne 0x100a53a6
mov edx, dword [ebp - 0x54]
add edx, 0x60
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100b0c0b
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x64], 0
jne 0x100a5381
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb0]
add ecx, 1
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x7c], ecx
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x54], 8
jg 0x100a530c
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x7c], 0x100
jle 0x100a530c
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x7c], 0x100
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x7c], 0
jle 0x100a5381
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x7c]
shl edx, 4
push edx
call fcn.10004d70
add esp, 4
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x80], 0
jne 0x100a535b
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x7c]
shl ecx, 4
push ecx
push str.Malloc_Error_for_cell_array_color_table__d_bytes_n
call fcn.10004d30
add esp, 8
mov eax, dword [ebp - 0x5c]
jmp 0x100a5ac3
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x7c]
shl eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12e4]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.100f1850
add esp, 0xc
push 5
mov edx, dword [ebp - 0x14]
push edx
call fcn.10001f70
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov eax, dword [ebp - 0x5c]
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x40]
imul ecx, dword [ebp - 0x48]
test ecx, ecx
jg 0x100a53d9
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x48]
push edx
push str.Invalid_nxny___d_for_cell_array_n
call fcn.10004d30
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
xor eax, eax
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x40]
imul ecx, dword [ebp - 0x48]
imul ecx, ecx, 3
cmp ecx, dword [ebp - 0x38]
jle 0x100a5403
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 3
mov eax, dword [ebp - 0x38]
cdq
idiv ecx
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x50], eax
jmp 0x100a5413
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x50], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xaa]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xa6]
mov word [ebp - 0x4c], dx
push 0x10
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x58]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x10c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100ae978
add esp, 0x14
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x10c]
test ecx, ecx
jne 0x100a57f0
cmp dword [ebp - 0x44], 0
jne 0x100a5477
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xaa]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x44]
mov word [ecx + 0xaa], dx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
sub ecx, 1
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0x1f
ja case.0x100a54a9.5
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dl, byte [eax + 0x100a5adf]
jmp dword [edx*4 + 0x100a5ac7]
mov eax, dword [ebp - 0x40]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x38]
jle 0x100a54ee
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x40]
add eax, 7
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
mov eax, dword [ebp - 0x38]
cdq
idiv ecx
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x50], eax
jmp 0x100a54fe
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x50], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x40]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp - 0x54]
imul eax, dword [edx + 0x50]
push eax
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x100a556e
mov eax, dword [ebp - 0x40]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x54]
imul eax, dword [ecx + 0x50]
push eax
push 0x10119f18
call fcn.10004d30
add esp, 8
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0x58]
mov word [edx + 0xaa], ax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10087e3b
add esp, 4
mov eax, 4
jmp 0x100a5ac3
mov eax, dword [ebp - 0x40]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp - 0x54]
imul eax, dword [edx + 0x50]
push eax
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x6c], edx
jmp 0x100a57eb
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax + 0x50]
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x100a55f9
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
imul eax, dword [edx + 0x50]
push eax
push 0x10119f44
call fcn.10004d30
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x58]
mov word [ecx + 0xaa], dx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov eax, 4
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
imul edx, dword [ecx + 0x50]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x6c], edx
jmp 0x100a57eb
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax + 0x50]
shl ecx, 1
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100a567c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
imul eax, dword [edx + 0x50]
shl eax, 1
push eax
push 0x10119f70
call fcn.10004d30
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x58]
mov word [ecx + 0xaa], dx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov eax, 4
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
imul edx, dword [ecx + 0x50]
shl edx, 1
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x6c], edx
jmp 0x100a57eb
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax + 0x50]
shl ecx, 2
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x100a5703
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
imul eax, dword [edx + 0x50]
shl eax, 2
push eax
push 0x10119f9c
call fcn.10004d30
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x58]
mov word [ecx + 0xaa], dx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov eax, 4
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
imul edx, dword [ecx + 0x50]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x6c], edx
jmp 0x100a57eb
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax + 0x50]
shl ecx, 2
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x100a578b
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
imul eax, dword [edx + 0x50]
shl eax, 2
push eax
push 0x10119fc8
call fcn.10004d30
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x58]
mov word [ecx + 0xaa], dx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov eax, 4
jmp 0x100a5ac3
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
imul edx, dword [ecx + 0x50]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.100f1b90
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x6c], edx
jmp 0x100a57eb
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xaa]
push edx
push str.Illegal_local_color_precision__d_in_cell_array_n
call fcn.10004d30
add esp, 8
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x58]
mov word [eax + 0xaa], cx
xor eax, eax
jmp 0x100a5ac3
jmp 0x100a5899
cmp dword [ebp - 0x44], 0
jne 0x100a5803
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa6]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x50]
add eax, 1
imul ecx, eax
push ecx
call fcn.10004d70
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x100a5866
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x54]
imul ecx, dword [edx + 0x50]
push ecx
push str.sdi_malloc_failed_for_cell_array__d_bytes_n
call fcn.10004d30
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0xa6], dx
mov eax, 4
jmp 0x100a5ac3
mov eax, dword [ebp - 0x40]
imul eax, eax, 3
mov ecx, dword [ebp - 0x54]
imul eax, dword [ecx + 0x50]
push eax
push 0
mov edx, dword [ebp - 0x50]
push edx
call fcn.100f1b90
add esp, 0xc
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x44]
mov word [eax + 0xa6], cx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x4c]
cmp edx, dword [ebp - 0x48]
jge 0x100a5a98
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x10c]
test ecx, ecx
jne 0x100a59b8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
sub eax, 1
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0x1f
ja case.0x100a58de.5
mov edx, dword [ebp - 0x80]
xor ecx, ecx
mov cl, byte [edx + 0x100a5b17]
jmp dword [ecx*4 + 0x100a5aff]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100a4bdb
add esp, 0x14
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x5c], 1
jmp case.0x100a58de.5
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a4dc4
add esp, 0x14
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x6c], eax
jmp case.0x100a58de.5
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a45fe
add esp, 0x14
jmp case.0x100a58de.5
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100a44e8
add esp, 0x14
jmp case.0x100a58de.5
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100a43d7
add esp, 0x14
jmp 0x100a59da
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100a48f6
add esp, 0x14
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x54], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x14ac]
test edx, edx
je 0x100a5a0c
mov eax, dword [ebp - 0x14]
push eax
call fcn.10087e3b
add esp, 4
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + 0x14ac]
jmp 0x100a5ac3
mov edx, dword [ebp - 0x54]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10001f70
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x100a5a43
mov edx, dword [ebp - 0x14]
push edx
call fcn.10087e3b
add esp, 4
mov eax, dword [ebp - 0x5c]
jmp 0x100a5ac3
cmp dword [ebp - 0xc], 3
je 0x100a5a4f
cmp dword [ebp - 0xc], 0
jne 0x100a5a51
jmp 0x100a5a98
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ebp - 0x54]
add ecx, dword [edx + 0x50]
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x4c], ecx
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x4c]
mov eax, dword [ebp - 0x54]
add edx, dword [eax + 0x50]
cmp edx, dword [ebp - 0x48]
jl 0x100a5a8c
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
sub edx, dword [ecx + 0x4c]
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x50], edx
mov dword [ebp - 0xc], 3
jmp 0x100a5a93
mov dword [ebp - 0xc], 2
jmp 0x100a5899
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0xa6], dx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x58]
mov word [eax + 0xaa], cx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10087e3b
add esp, 4
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret