Function at 0x403b70
Capabilities:
Get common file path
Get disk size
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x42f4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb10
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, 0x43b5cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0xb34]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0xb28], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
cmp ebp, 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb34]
jne 0x403d57
call fcn.004231bf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x418]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x418]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x403cc1
cmp byte [esp + edx + 0x418], 0x5c
je 0x403c44
test edx, edx
jle 0x403c83
mov al, byte [esp + edx + 0x417]
dec edx
cmp al, 0x5c
jne 0x403c34
test edx, edx
jle 0x403c83
lea edi, [esp + edx + 0x419]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x418], 0
jmp 0x403cb6
lea edi, [esp + 0x418]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x418], 0
lea edx, [ebp + 0x64]
cmp edx, ebp
jl 0x403c2a
lea ecx, [esp + 0x8c8]
push ecx
push 0x258
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov al, byte [esp + 0x418]
test al, al
jne 0x403d0a
lea edi, [esp + 0x8c8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x418]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x670]
lea edx, [esp + 0x418]
push ecx
push edx
push str.Driectory_of__s__s__r_n
push ebx
call fcn.00402b80
push str.__________________________________________________________________r_n
push ebx
call fcn.00402b80
push 0x43b538
push ebx
call fcn.00402b80
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
add esp, 0x20
lea eax, [esp + 0x418]
push eax
call edi
mov ebp, dword [esp + 0xb34]
jmp 0x403d88
call fcn.004231bf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x670]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x670]
xor esi, esi
push ecx
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call fcn.004131c6
add esp, 8
cmp eax, 0xffffffff
jne 0x403deb
cmp ebp, 1
jne 0x403dcd
push 0x43b524
push ebx
call fcn.00402b80
add esp, 8
lea eax, [esp + 0x8c8]
push eax
call edi
lea ecx, [esp + 0xb30]
mov dword [esp + 0xb28], 0xffffffff
call fcn.00422dd3
xor eax, eax
jmp 0x40432b
cmp ebp, esi
jne 0x403e78
lea ecx, [esp + 0x30]
push ecx
push 0x43b5cc
call fcn.004131c6
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x403e78
test byte [esp + 0x30], 0x10
je 0x403e65
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x44]
inc ecx
cmp al, 0x2e
mov dword [esp + 0x14], ecx
je 0x403e65
lea edx, [esp + 0x8c8]
push edx
push 0x258
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [esp + 0x44]
push eax
call edi
push 0
push ecx
lea edx, [esp + 0x678]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00422dfd
mov ecx, ebx
call fcn.00403b70
lea eax, [esp + 0x8c8]
push eax
call edi
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00413293
add esp, 8
cmp eax, 0xffffffff
jne 0x403e0c
lea edx, [esp + 0x30]
lea eax, [esp + 0x670]
push edx
push eax
call fcn.004131c6
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x403f8d
mov bl, 0x3e
test byte [esp + 0x30], 0x10
je 0x403f72
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xb34]
inc ecx
cmp eax, 1
mov dword [esp + 0x14], ecx
jne 0x403f72
lea ecx, [esp + 0x44]
lea edx, [esp + 0x1c0]
push ecx
push str._s____________________________________________________r_n
push edx
call fcn.00413174
mov al, byte [esp + 0x1e0]
add esp, 0xc
cmp al, 0x20
je 0x403f12
mov edi, str....
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d3]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x418]
push ecx
push edx
lea eax, [esp + 0x1ef]
push str.____s_s
push eax
mov byte [esp + 0x1e7], 0x3c
mov byte [esp + 0x1e8], 0x44
mov byte [esp + 0x1e9], 0x49
mov byte [esp + 0x1ea], 0x52
mov byte [esp + 0x1eb], bl
call fcn.00413174
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1d0]
push ecx
push str.__s_r_n
push edx
call fcn.00402b80
add esp, 0x1c
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00413293
add esp, 8
cmp eax, 0xffffffff
jne 0x403e9a
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x670]
push ecx
push edx
call fcn.004131c6
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40423a
test byte [esp + 0x30], 0x10
jne 0x404223
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x1c0]
lea edx, [esp + 0x1c0]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x184], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + edx + 0x1c0], 0x2e
jne 0x40403b
lea edi, [esp + edx + 0x1c1]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x1c0], 0
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x184]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, 0x12c
jl 0x403ff8
mov al, byte [esp + 0x1ce]
test al, al
jne 0x40407d
mov edi, 0x43b490
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4040a1
mov edi, 0x43b484
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x184]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1d0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43b448
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x1d4], 0x20
je 0x404135
mov edi, str....
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d3]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x30]
test al, 0x20
je 0x404145
mov byte [esp + 0x1d7], 0x41
test al, 1
je 0x404151
mov byte [esp + 0x1d8], 0x52
test al, 2
je 0x40415d
mov byte [esp + 0x1d9], 0x48
test al, 4
je 0x404169
mov byte [esp + 0x1da], 0x53
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x148]
push 0xa
push ecx
push edx
call fcn.00415a54
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
add esi, eax
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1e7]
lea esi, [esp + 0x148]
sub edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x418]
push ecx
push 0x258
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea edx, [esp + 0x44]
lea eax, [esp + 0x418]
push edx
push eax
lea ecx, [esp + 0x1ef]
push str.____s_s
push ecx
call fcn.00413174
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x1d0]
push edx
inc edi
push str.__s_r_n
push ebx
mov dword [esp + 0x34], edi
call fcn.00402b80
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
add esp, 0x1c
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00413293
add esp, 8
cmp eax, 0xffffffff
jne 0x403fad
cmp dword [esp + 0xb34], 1
jne 0x40430f
lea ecx, [esp + 0x8c8]
push ecx
call edi
push str.__________________________________________________________________r_n
push ebx
call fcn.00402b80
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push 0x43b410
push ebx
call fcn.00402b80
add esp, 0x1c
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x424]
push edx
push eax
mov byte [esp + 0x42f], 0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x10]
sub esp, 8
imul eax, dword [esp + 0x34]
mov ecx, eax
imul eax, dword [esp + 0x2c]
imul ecx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
sub esp, 8
fild qword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x428]
fmul dword [0x4316e4]
fstp qword [esp + 8]
fild qword [esp + 0x28]
fmul dword [0x4316e4]
fstp qword [esp]
push 0x43b3e4
push ecx
call fcn.00413174
lea edx, [esp + 0x430]
push edx
push ebx
call fcn.00402b80
add esp, 0x20
lea ecx, [esp + 0xb30]
mov dword [esp + 0xb28], 0xffffffff
call fcn.00422dd3
mov eax, 1
mov ecx, dword [esp + 0xb20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb1c
ret 8