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

Disassembly:
push 0xffffffffffffffff
push 0x604159
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
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.0040b8d0
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.0041e490
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x50]
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jae 0x43e0d1
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 0x43e0eb
lea eax, [esp + 0x50]
movsx edx, byte [eax]
push edx
call fcn.005c6627
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.0041e490
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x43e12d
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 0x43e148
lea ebp, [esp + 0x34]
cmp byte [ebp], bl
je 0x43e2d2
mov edx, dword [0x728f58]
mov eax, dword [edx + 0xc]
mov ecx, 0x728f58
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x74], 4
push ebp
push 0x6cb9fc
lea edi, [esp + 0x1c]
call fcn.0042a2b0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax - 0xc], ebx
jl 0x43e280
movsx ecx, byte [eax]
push ecx
call fcn.005c6627
movsx edx, byte [esp + 0x1f]
add esp, 4
cmp eax, edx
je 0x43e23e
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x43e1bf
mov eax, dword [eax - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.0040dd10
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x43e23e
push 0x6d1568
lea edx, [esp + 0x18]
push edx
lea edx, [eax + 0x16]
call fcn.0041d630
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43e23e
lea ecx, [esp + 0x1c]
push str._test.sys
push ecx
lea ecx, [esp + 0x1c]
call fcn.00424670
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.0040b810
cmp esi, 0xffffffff
jne 0x43e28a
mov byte [esp + 0x74], 4
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43e243
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 0x43e275
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp], bl
jne 0x43e151
jmp 0x43e2d2
push 0x80070057
call fcn.00403d10
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004c1530
add esp, 8
mov byte [esp + 0x74], 8
mov edi, dword [esp + 0x20]
call fcn.0040ddb0
mov byte [esp + 0x74], 7
lea ecx, [esp + 0x1c]
call fcn.0040ba40
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.0040b810
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x43e336
cmp dword [esp + 0x24], ebx
je 0x43e336
push eax
lea edx, [esp + 0x18]
push edx
mov ebx, 0x6ca140
call fcn.0041e2b0
mov byte [esp + 0x7c], 0xa
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041e2b0
add esp, 0x10
mov byte [esp + 0x74], 0xb
mov edi, dword [esp + 0x20]
call fcn.0040ddb0
mov byte [esp + 0x74], 0xa
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov byte [esp + 0x74], 2
lea ecx, [esp + 0x14]
call fcn.0040ba40
xor ebx, ebx
mov byte [esp + 0x74], 1
mov edi, 0x10
cmp dword [esp + 0x48], edi
jb 0x43e353
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005c396f
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 0x43e37b
mov edx, dword [esp + 0x50]
push edx
call fcn.005c396f
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.005c397a
add esp, 0x64
ret