Function at 0x41a010
Capabilities:
Check if file exists
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x457750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov dword [esp + 0x10], ecx
mov edx, dword [esi - 8]
test edx, edx
jne 0x41a047
mov eax, 2
jmp 0x41a4f5
cmp edx, 0x80
jle 0x41a059
mov eax, 8
jmp 0x41a4f5
cmp edx, 3
jge 0x41a068
mov eax, 1
jmp 0x41a4f5
mov di, word [esi + 2]
cmp di, 0x3a
jne 0x41a083
cmp word [esi + 4], 0x5c
je 0x41a083
mov eax, 1
jmp 0x41a4f5
xor ecx, ecx
test edx, edx
jle 0x41a0c9
mov ax, word [esi + ecx*2]
cmp ax, 0x3a
jne 0x41a09a
cmp ecx, 1
jne 0x41a0e7
jmp 0x41a0c4
cmp ax, 0x2a
je 0x41a0e7
cmp ax, 0x3f
je 0x41a0e7
cmp ax, 0x22
je 0x41a0e7
cmp ax, 0x3c
je 0x41a0e7
cmp ax, 0x3e
je 0x41a0e7
cmp ax, 0x7c
je 0x41a0e7
cmp ax, 0x2f
je 0x41a0e7
inc ecx
cmp ecx, edx
jl 0x41a089
cmp edx, 4
jge 0x41a0f1
cmp edx, 1
jle 0x41a31d
cmp di, 0x3a
je 0x41a0f1
mov eax, 1
jmp 0x41a4f5
mov eax, 7
jmp 0x41a4f5
cmp edx, 2
jl 0x41a106
cmp di, 0x3a
je 0x41a106
mov eax, 1
jmp 0x41a4f5
cmp edx, 1
jle 0x41a140
mov eax, dword [0x463544]
mov ecx, dword [0x463548]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ax, word [esi]
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x18], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41a140
mov eax, 9
jmp 0x41a4f5
mov al, byte [esp + 0x38]
push 0xc
mov byte [esp + 0x20], al
call fcn.00442bba
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov eax, dword [ebx]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a327
mov eax, dword [ebx]
push ecx
mov dword [esp + 0x18], esp
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x41a19a
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41a1e7
mov ecx, dword [0x463058]
mov dword [esi], ecx
mov ebp, dword [ebx]
test ebp, ebp
jne 0x41a1ac
xor edi, edi
jmp 0x41a1b5
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.00407470
test eax, eax
je 0x41a1e7
mov eax, dword [esi]
lea ebx, [edi + edi]
push ebx
lea edx, [edi + edi + 2]
push ebp
push edx
push eax
call fcn.00402e50
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx - 8], edi
mov edx, dword [esi]
mov word [ebx + edx], 0
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.00405610
test eax, eax
je 0x41a3c2
cmp eax, 0x50
je 0x41a327
cmp eax, 0xb7
je 0x41a327
cmp eax, 5
jne 0x41a29e
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], eax
call fcn.00406520
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407980
add esp, 8
test al, al
jne 0x41a283
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00407f00
mov ecx, dword [esp + 0x3c]
add esp, 4
lea eax, [esp + 0x10]
mov edx, dword [ecx + 4]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], edx
call fcn.00406520
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407980
add esp, 8
test al, al
je 0x41a245
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004064b0
mov eax, 5
jmp 0x41a4f5
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 2
mov dword [esp + 0x3c], edx
call fcn.00406520
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407980
add esp, 8
test al, al
jne 0x41a30c
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00407f00
mov eax, dword [esp + 0x3c]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, dword [eax + 4]
push edx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x20]
call fcn.00406520
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00407980
add esp, 8
test al, al
je 0x41a2ce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004064b0
mov eax, 1
jmp 0x41a4f5
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0041a510
test eax, eax
jne 0x41a3c2
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 3
call fcn.00406520
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00407980
add esp, 8
test al, al
jne 0x41a3a7
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00407f00
mov edx, dword [esp + 0x3c]
add esp, 4
lea ecx, [esp + 0x10]
mov eax, dword [edx + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], eax
call fcn.00406520
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407980
add esp, 8
test al, al
je 0x41a369
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004064b0
mov eax, 5
jmp 0x41a4f5
mov eax, dword [0x469cb8]
mov ecx, dword [ebx]
shl eax, 0x14
cdq
push edx
push eax
push ecx
call fcn.0042a2a0
add esp, 0xc
test eax, eax
jne 0x41a469
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 4
mov dword [esp + 0x3c], eax
call fcn.00406520
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407980
add esp, 8
test al, al
jne 0x41a44e
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00407f00
mov ecx, dword [esp + 0x3c]
add esp, 4
lea eax, [esp + 0x10]
mov edx, dword [ecx + 4]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], edx
call fcn.00406520
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407980
add esp, 8
test al, al
je 0x41a410
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004064b0
mov eax, 3
jmp 0x41a4f5
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], 5
call fcn.00406510
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00406520
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407980
add esp, 8
test al, al
jne 0x41a4e2
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00407f00
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push 0
push eax
call fcn.00406530
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406520
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407980
add esp, 8
test al, al
je 0x41a49f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.004064b0
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4