Function at 0x403a70
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455efc
push eax
mov dword fs:[0], esp
sub esp, 0xa30
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
lea esi, [ebp + 0xbc]
push ebx
mov ecx, esi
call fcn.00449108
test eax, eax
jle 0x403ab1
push ebx
mov ecx, esi
call fcn.00449108
test eax, eax
jg 0x403aa5
push 0xffffffffffffffff
lea ecx, [ebp + 0x138]
push ebx
call fcn.00405080
mov byte [esp + 0x13], 0x41
mov dword [esp + 0x1c], 0x61
mov eax, dword [0x46b788]
mov cl, byte [esp + 0x13]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
mov byte [esp + 0x18], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403f83
mov al, byte [esp + 0x14]
mov cl, byte [esp + 0x15]
mov dl, byte [0x476654]
mov byte [esp + 0x18], al
mov byte [esp + 0x19], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], dl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x26], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x68]
push 0x46b780
push edx
call fcn.00435f1b
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
je 0x403f83
mov eax, dword [0x471ff8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0xa4c], ebx
call fcn.0044e3f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], ebx
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], ebx
call fcn.0044e3f0
mov eax, dword [ebp + 0x140]
lea ecx, [ebp + 0x138]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00405200
mov eax, dword [ebp + 0xd8]
push ebx
push ebx
push 0x146
push eax
mov dword [esp + 0x54], 0x17
call dword [0x4765b0]
mov ecx, dword [ebp + 0x13c]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x140]
mov dword [esp + 0x60], ebx
mov edx, eax
shl edx, 4
shl eax, 4
mov edx, dword [edx + ecx - 0x10]
lea ecx, [eax + ecx - 0x10]
mov edx, dword [edx - 8]
push edx
call fcn.0044e549
mov ecx, dword [ebp + 0x13c]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x140]
mov dword [esp + 0x54], ebx
shl eax, 4
mov dword [esp + 0x58], ebx
mov edx, dword [eax + ecx - 0x10]
lea ecx, [ebp + 0xbc]
mov eax, dword [edx - 8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
call fcn.0044911f
mov edx, dword [ebp + 0x134]
mov cl, byte [esp + 0x13]
mov al, byte [edx]
cmp al, cl
je 0x403c5d
movsx ecx, al
push ecx
call fcn.0043606b
add esp, 4
test eax, eax
je 0x403f5b
mov edx, dword [ebp + 0x134]
mov ecx, dword [esp + 0x1c]
movsx eax, byte [edx]
cmp eax, ecx
jne 0x403f5b
mov cl, byte [0x476654]
xor eax, eax
mov byte [esp + 0x270], cl
mov ecx, 0xf9
lea edi, [esp + 0x271]
push 0x3e8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x476654]
mov ecx, 0xf9
mov byte [esp + 0x65c], al
xor eax, eax
lea edi, [esp + 0x65d]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x660]
push ecx
stosb byte es:[edi], al
call fcn.00435e81
lea edx, [esp + 0x664]
push 0x46b83c
push edx
call fcn.00435fbf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x284]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x46b83c
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
lea edx, [esp + 0x288]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46b838
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]
call fcn.00435fbf
mov ebx, eax
add esp, 0x1c
test ebx, ebx
mov dword [esp + 0x20], 0xa
je 0x403f2f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x270]
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
lea edx, [esp + 0x270]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46b838
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 eax, dword [0x471ff8]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x24], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], eax
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4c], 1
call fcn.0044e3f0
mov al, byte [0x476654]
mov ecx, 0x40
mov byte [esp + 0x16c], al
xor eax, eax
lea edi, [esp + 0x16d]
mov esi, dword [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x16c]
push 0
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x278]
push 0x104
push edx
mov dword [esp + 0x40], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
lea ecx, [esp + 0x270]
neg eax
sbb eax, eax
push ecx
add eax, 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
call fcn.0044e3f0
mov edi, dword [ebp + 0x140]
lea ebx, [ebp + 0x138]
push 0xffffffffffffffff
mov ecx, ebx
lea edx, [edi + 1]
push edx
call fcn.00405080
mov ecx, edi
mov edi, dword [ebx + 4]
lea eax, [esp + 0x24]
shl ecx, 4
push eax
add ecx, edi
call fcn.004053e0
mov ecx, dword [ebp + 0xd8]
push 0
push 0
push 0x146
push ecx
mov dword [esp + 0x54], 0x17
call dword [0x4765b0]
mov dword [esp + 0x48], eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
mov ecx, dword [ebp + 0x13c]
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x140]
mov dword [esp + 0x60], edx
mov edx, eax
shl edx, 4
shl eax, 4
mov edx, dword [edx + ecx - 0x10]
lea ecx, [eax + ecx - 0x10]
mov edx, dword [edx - 8]
push edx
call fcn.0044e549
mov ecx, dword [ebp + 0x13c]
mov dword [esp + 0x4c], eax
mov eax, 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x140]
shl eax, 4
mov edx, dword [eax + ecx - 0x10]
lea ecx, [ebp + 0xbc]
mov eax, dword [edx - 8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
call fcn.0044911f
push 0x46b83c
push 0
call fcn.00435fbf
add esi, 0xa
add esp, 8
mov ebx, eax
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xa48], 2
call fcn.0044e267
lea ecx, [esp + 0x24]
mov byte [esp + 0xa48], 0
call fcn.0044e267
test ebx, ebx
jne 0x403d3e
mov ecx, dword [ebp + 0xd8]
mov esi, dword [0x4765b0]
push 0
push 0
push 0x146
push ecx
call esi
mov edx, dword [ebp + 0xd8]
dec eax
push 0
push eax
push 0x14e
push edx
call esi
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0xa48], 3
call fcn.0044e267
lea ecx, [esp + 0x34]
mov dword [esp + 0xa48], 0xffffffff
call fcn.0044e267
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
inc al
inc edx
cmp al, 0x5a
mov byte [esp + 0x13], al
mov dword [esp + 0x1c], edx
jle 0x403acc
mov ecx, dword [esp + 0xa40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa3c
ret