Function at 0x432930
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d2ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x7c]
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
call fcn.0040b7e0
mov dword [esp + 0x74], ebx
mov ebp, 1
push ebx
mov edi, 0x105
lea esi, [esp + 0x50]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004178d0
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x50]
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jae 0x4329c1
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x4329db
lea eax, [esp + 0x50]
movsx edx, byte [eax]
push edx
call fcn.00596379
add esp, 4
push ebx
mov edi, 0x400
lea esi, [esp + 0x34]
mov byte [esp + 0x1f], al
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.004178d0
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x432a1d
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x48]
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x34]
jae 0x432a38
lea ebp, [esp + 0x34]
cmp byte [ebp], bl
je 0x432bc2
mov edx, dword [0x6e9718]
mov eax, dword [edx + 0xc]
mov ecx, 0x6e9718
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x74], 4
push ebp
push 0x6947bc
lea edi, [esp + 0x1c]
call fcn.00421d40
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax - 0xc], ebx
jl 0x432b70
movsx ecx, byte [eax]
push ecx
call fcn.00596379
movsx edx, byte [esp + 0x1f]
add esp, 4
cmp eax, edx
je 0x432b2e
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x432aaf
mov eax, dword [eax - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.0040da00
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x432b2e
push 0x699fc0
lea edx, [esp + 0x18]
push edx
lea edx, [eax + 0x16]
call fcn.00420fe0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x432b2e
lea ecx, [esp + 0x1c]
push str._test.sys
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c860
add esp, 8
mov byte [esp + 0x74], 5
mov eax, dword [eax]
push ebx
push 0x4000000
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x74], 7
lea ecx, [esp + 0x1c]
call fcn.0040b720
cmp esi, 0xffffffff
jne 0x432b7a
mov byte [esp + 0x74], 4
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x432b33
sub eax, edx
lea ebp, [eax + ebp + 1]
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x432b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp], bl
jne 0x432a41
jmp 0x432bc2
push 0x80070057
call fcn.00403d10
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00499810
add esp, 8
mov byte [esp + 0x74], 8
mov edi, dword [esp + 0x20]
call fcn.0040daa0
mov byte [esp + 0x74], 7
lea ecx, [esp + 0x1c]
call fcn.0040b950
mov byte [esp + 0x74], 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x74], 2
lea ecx, [esp + 0x14]
call fcn.0040b720
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x432c26
cmp dword [esp + 0x24], ebx
je 0x432c26
push eax
lea edx, [esp + 0x18]
push edx
mov ebx, 0x692fe8
call fcn.004176f0
mov byte [esp + 0x7c], 0xa
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004176f0
add esp, 0x10
mov byte [esp + 0x74], 0xb
mov edi, dword [esp + 0x20]
call fcn.0040daa0
mov byte [esp + 0x74], 0xa
lea ecx, [esp + 0x1c]
call fcn.0040b950
mov byte [esp + 0x74], 2
lea ecx, [esp + 0x14]
call fcn.0040b950
xor ebx, ebx
mov byte [esp + 0x74], 1
mov edi, 0x10
cmp dword [esp + 0x48], edi
jb 0x432c43
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0059392f
add esp, 4
mov esi, 0xf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x74], bl
cmp dword [esp + 0x64], edi
jb 0x432c6b
mov edx, dword [esp + 0x50]
push edx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0059393a
add esp, 0x64
ret