Function at 0x410a40
Capabilities:
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d682
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x437610]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x10], eax
mov ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], edi
call fcn.00410f90
test al, al
jne 0x410ac0
push 0x40000
push str.error
push 0x432d00
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x410ef6
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
jne 0x410ae7
push 0x40000
push str.error
push 0x432d18
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x410ef6
sub eax, esi
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi - 1]
mov dword [esp + 0x28], edi
cmp edi, eax
ja 0x410b13
push str.invalid_vector_T__subscript
call fcn.0041508c
lea ecx, [eax*8]
sub ecx, eax
push 0xffffffffffffffff
lea eax, [esi + ecx*4]
push 0
push eax
mov ecx, ebx
call fcn.00401260
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push ebx
mov byte [ecx], 0
call fcn.00401260
mov ecx, dword [esp + 0x2c]
call fcn.004117e0
test al, al
je 0x410bb8
call fcn.0040e650
lea edi, [eax + 4]
push 0
push ebx
or eax, 0xffffffff
mov esi, edi
call fcn.00403c10
push 0xd
mov eax, str.locojoymt2_
mov ecx, edi
call fcn.004039a0
push 0x10
mov eax, str.MtExtractLog.txt
mov ecx, edi
call fcn.004039a0
cmp dword [ebx + 0x14], 0x10
jb 0x410b97
mov eax, dword [ebx]
jmp 0x410b99
mov eax, ebx
push eax
push str.check_the_final_drive__install_locojoy__s__n
call fcn.0040e650
call fcn.004109f0
add esp, 8
mov esi, ebx
call fcn.00411390
jmp 0x410ef6
test edi, edi
jne 0x410bc6
push str.invalid_vector_T__subscript
call fcn.0041508c
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00401260
cmp edi, 1
jne 0x410bf1
call fcn.0040e650
mov ecx, eax
mov eax, ebx
call fcn.004109c0
mov esi, ebx
call fcn.00411390
jmp 0x410ef6
dec edi
lea eax, [esp + 0x18]
call fcn.004118c0
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov ecx, ebx
call fcn.00401260
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], edi
mov byte [esp + 0x64], 0
lea esi, [esp + 0x64]
mov byte [esp + 0x90], 1
call fcn.00411190
test al, al
jne 0x410c67
call fcn.0040e650
mov ecx, eax
mov eax, ebx
call fcn.004109c0
cmp dword [ebx + 0x14], 0x10
jb 0x410c46
mov eax, dword [ebx]
jmp 0x410c48
mov eax, ebx
push eax
push str.failed_to_get_system_drive__install_at_the_end_of_a_drive__s__n
call fcn.0040e650
call fcn.004109f0
add esp, 8
mov esi, ebx
call fcn.00411390
jmp 0x410eed
lea esi, [esp + 0x2c]
call fcn.004119d0
mov byte [esp + 0x90], 2
call fcn.00411b60
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x410d4e
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
cmp esi, edi
jbe 0x410b09
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
call fcn.00412190
test al, al
jne 0x410d40
lea eax, [esp + 0x18]
call fcn.004118c0
cmp dword [eax + 0x14], 0x10
jb 0x410cbf
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x410d40
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x48], eax
and ecx, 0x80000000
mov dword [esp + 0x44], edx
fild qword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], 0
fild qword [esp + 0x3c]
lea eax, [esp + 0x18]
fchs
faddp st(1)
fmul qword [0x4330f8]
fstp dword [esp + 0x14]
call fcn.004118c0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00411a40
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401260
mov esi, dword [esp + 0x28]
add dword [esp + 0x10], 0x1c
inc edi
cmp esi, edi
jg 0x410c93
lea eax, [esi - 1]
cmp esi, eax
ja 0x410d5f
push str.invalid_vector_T__subscript
call fcn.0041508c
mov edx, dword [esp + 0x18]
lea ecx, [eax*8]
sub ecx, eax
push 0xffffffffffffffff
lea eax, [edx + ecx*4]
push 0
push eax
mov ecx, ebx
call fcn.00401260
cmp dword [esp + 0x34], 0
jne 0x410e12
call fcn.0040e650
mov ecx, eax
mov eax, ebx
call fcn.004109c0
cmp dword [ebx + 0x14], 0x10
jb 0x410d9e
mov eax, dword [ebx]
jmp 0x410da0
mov eax, ebx
push eax
push str.get_free_gb__table_empty__install_at_the_end_of_a_drive__s__n
call fcn.0040e650
call fcn.004109f0
add esp, 8
mov esi, ebx
call fcn.00411390
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
call fcn.00411cb0
mov eax, dword [esp + 0x30]
push eax
call fcn.00416084
add esp, 4
cmp dword [esp + 0x78], 0x10
jb 0x410df8
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00416084
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
jmp 0x410ef6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov esi, eax
cmp eax, ecx
jne 0x410e3f
push eax
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
mov byte [esp + 0x98], 4
call fcn.00411cb0
mov edx, dword [esp + 0x30]
push edx
jmp 0x410ee5
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
call fcn.00412130
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
add eax, 0x10
push 0
push eax
mov ecx, ebx
call fcn.00401260
call fcn.0040e650
mov ecx, eax
mov eax, ebx
call fcn.004109c0
cmp dword [ebx + 0x14], 0x10
jb 0x410e77
mov eax, dword [ebx]
jmp 0x410e79
mov eax, ebx
push eax
push str.get_biggest_space_drive__space__s___n
call fcn.0040e650
call fcn.004109f0
add esp, 8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00412130
mov esi, dword [esp + 0x10]
add esi, 0x10
call fcn.00411390
test al, al
jne 0x410ec3
mov edi, dword [esp + 0x28]
dec edi
lea eax, [esp + 0x18]
call fcn.004118c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00401260
mov byte [esp + 0x90], 5
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
call fcn.00411cb0
mov eax, dword [esp + 0x30]
push eax
call fcn.00416084
add esp, 4
lea ecx, [esp + 0x64]
call fcn.00401190
lea ebx, [esp + 0x18]
call fcn.00411bc0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret 4