Function at 0x401a30
Capabilities:
Get disk size
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ecx
push 0x413f74
mov dword [0x413f74], ebx
mov dword [0x413f78], ebx
mov dword [0x413f7c], ebx
mov dword [0x413f80], ebx
mov word [0x413f84], bx
mov byte [0x413f86], bl
mov dword [esp + 0x20], ebx
call fcn.004011c0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call fcn.00402730
add esp, 8
call fcn.00402340
test eax, eax
js 0x401bc5
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push ecx
push edi
mov ecx, esi
call fcn.00402a10
add esp, 8
test al, al
jne 0x401fa5
cmp esi, ebx
je 0x401ad1
push esi
call fcn.00403545
add esp, 4
cmp edi, ebx
je 0x401ade
push edi
call fcn.00403545
add esp, 4
mov eax, dword [0x413f78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ae6
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040352b
add esp, 4
mov dword [0x413f7c], eax
mov ecx, 0x41029c
mov edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x401b20
mov eax, dword [0x413f78]
mov edx, eax
jmp 0x401b40
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401b40
mov edi, dword [0x413f7c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401b56
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x413f7c]
add edi, 0xfffffffe
jmp 0x401b80
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401b80
mov eax, dword [0x41029c]
mov dword [edi], eax
call fcn.00401fb0
test eax, eax
js 0x401bc5
mov edx, dword [0x413f74]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [esp + 0x18], 0x61a8
ja 0x401bd1
cmp dword [esp + 0x1c], ebx
ja 0x401bd1
call fcn.00402490
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402800
call fcn.00402110
mov eax, dword [0x413f74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x413f74]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401bf0
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x413f80]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401c10
sub eax, esi
sar eax, 1
lea eax, [eax + edx + 7]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040352b
mov ebx, eax
mov eax, 0x41029c
mov edx, ebx
add esp, 4
sub edx, eax
jmp 0x401c50
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401c50
mov eax, dword [0x413f74]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c66
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401c76
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401c95
mov eax, dword [0x410368]
mov dword [edi], eax
mov eax, dword [0x413f80]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cb0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401cc0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 2]
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401ce0
mov ecx, dword [0x41036c]
mov dword [eax], ecx
mov edx, dword [0x410370]
mov dword [eax + 4], edx
mov cx, word [0x410374]
mov word [eax + 8], cx
mov eax, dword [0x413f74]
push ebx
call fcn.004010b0
add esp, 4
test eax, eax
js 0x401bc0
test ebx, ebx
je 0x401d2b
push ebx
call fcn.00403545
add esp, 4
call fcn.00402860
mov eax, dword [0x413f74]
lea edx, [eax + 2]
jmp 0x401d40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d40
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 0x1f]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040352b
mov ecx, 0x41029c
mov esi, eax
add esp, 4
mov dword [esp + 0x10], eax
sub esi, ecx
lea esp, [esp]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x401d80
mov ecx, dword [0x413f74]
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401d97
sub ecx, esi
mov edx, ecx
lea edi, [eax - 2]
xor ebx, ebx
jmp 0x401db0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401db0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax - 2]
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401dd0
mov ecx, 0xe
mov esi, str.instcore.exe___usetempdir__
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [0x413f74]
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401df2
sub ecx, esi
mov edx, ecx
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x401e04
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401e21
mov ecx, dword [0x4103b4]
mov edi, dword [esp + 0x14]
mov dword [eax], ecx
mov dx, word [0x4103b8]
mov word [eax + 4], dx
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.00401970
add esp, 4
call fcn.004032a0
test eax, eax
je 0x401e6e
lea ecx, [esp + 0x10]
push ecx
mov eax, str.__admin
call fcn.00401970
add esp, 4
call fcn.00403110
test al, al
je 0x401e89
lea edx, [esp + 0x10]
push edx
mov eax, str.__nolauncher
call fcn.00401970
add esp, 4
mov eax, dword [0x413f74]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401e91
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 4
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040352b
mov ecx, dword [0x413f74]
mov esi, eax
add esp, 4
mov edx, esi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x401ec6
lea eax, [esi - 2]
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401ee0
mov ecx, dword [0x4103e8]
mov dword [eax], ecx
mov edx, dword [0x4103ec]
push esi
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.00403545
mov esi, dword [esp + 0x14]
add esp, 4
push 1
push 5
push esi
call fcn.00401000
add esp, 0xc
test eax, eax
js 0x401bc0
call fcn.00402490
cmp edi, ebx
je 0x401f38
push edi
call fcn.00403545
add esp, 4
cmp esi, ebx
je 0x401f45
push esi
call fcn.00403545
add esp, 4
mov eax, dword [0x413f74]
cmp eax, ebx
je 0x401f5d
push eax
call fcn.00403545
add esp, 4
mov dword [0x413f74], ebx
mov eax, dword [0x413f78]
cmp eax, ebx
je 0x401f75
push eax
call fcn.00403545
add esp, 4
mov dword [0x413f78], ebx
mov eax, dword [0x413f7c]
cmp eax, ebx
je 0x401f8d
push eax
call fcn.00403545
add esp, 4
mov dword [0x413f7c], ebx
mov eax, dword [0x413f80]
cmp eax, ebx
je 0x401fa5
push eax
call fcn.00403545
add esp, 4
mov dword [0x413f80], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10