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

Disassembly:
push 0xffffffffffffffff
push 0x4556f0
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 0x41ae57
mov eax, 2
jmp 0x41b305
cmp edx, 0x80
jle 0x41ae69
mov eax, 8
jmp 0x41b305
cmp edx, 3
jge 0x41ae78
mov eax, 1
jmp 0x41b305
mov di, word [esi + 2]
cmp di, 0x3a
jne 0x41ae93
cmp word [esi + 4], 0x5c
je 0x41ae93
mov eax, 1
jmp 0x41b305
xor ecx, ecx
test edx, edx
jle 0x41aed9
mov ax, word [esi + ecx*2]
cmp ax, 0x3a
jne 0x41aeaa
cmp ecx, 1
jne 0x41aef7
jmp 0x41aed4
cmp ax, 0x2a
je 0x41aef7
cmp ax, 0x3f
je 0x41aef7
cmp ax, 0x22
je 0x41aef7
cmp ax, 0x3c
je 0x41aef7
cmp ax, 0x3e
je 0x41aef7
cmp ax, 0x7c
je 0x41aef7
cmp ax, 0x2f
je 0x41aef7
inc ecx
cmp ecx, edx
jl 0x41ae99
cmp edx, 4
jge 0x41af01
cmp edx, 1
jle 0x41b12d
cmp di, 0x3a
je 0x41af01
mov eax, 1
jmp 0x41b305
mov eax, 7
jmp 0x41b305
cmp edx, 2
jl 0x41af16
cmp di, 0x3a
je 0x41af16
mov eax, 1
jmp 0x41b305
cmp edx, 1
jle 0x41af50
mov eax, dword [0x4605dc]
mov ecx, dword [0x4605e0]
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 0x41af50
mov eax, 9
jmp 0x41b305
mov al, byte [esp + 0x38]
push 0xc
mov byte [esp + 0x20], al
call fcn.00440c16
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 0x41b137
mov eax, dword [ebx]
push ecx
mov dword [esp + 0x18], esp
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x41afaa
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41aff7
mov ecx, dword [str.lF_F]
mov dword [esi], ecx
mov ebp, dword [ebx]
test ebp, ebp
jne 0x41afbc
xor edi, edi
jmp 0x41afc5
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.004079b0
test eax, eax
je 0x41aff7
mov eax, dword [esi]
lea ebx, [edi + edi]
push ebx
lea edx, [edi + edi + 2]
push ebp
push edx
push eax
call fcn.00402fc0
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.00405c00
test eax, eax
je 0x41b1d2
cmp eax, 0x50
je 0x41b137
cmp eax, 0xb7
je 0x41b137
cmp eax, 5
jne 0x41b0ae
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.00406b10
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407d60
add esp, 8
test al, al
jne 0x41b093
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004082e0
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.00406b10
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407d60
add esp, 8
test al, al
je 0x41b055
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406aa0
mov eax, 5
jmp 0x41b305
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.00406b10
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407d60
add esp, 8
test al, al
jne 0x41b11c
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004082e0
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.00406b10
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00407d60
add esp, 8
test al, al
je 0x41b0de
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406aa0
mov eax, 1
jmp 0x41b305
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0041b320
test eax, eax
jne 0x41b1d2
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.00406b10
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00407d60
add esp, 8
test al, al
jne 0x41b1b7
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004082e0
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.00406b10
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407d60
add esp, 8
test al, al
je 0x41b179
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406aa0
mov eax, 5
jmp 0x41b305
mov eax, dword [0x4689c0]
mov ecx, dword [ebx]
shl eax, 0x14
cdq
push edx
push eax
push ecx
call 0x42bee0
add esp, 0xc
test eax, eax
jne 0x41b279
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.00406b10
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407d60
add esp, 8
test al, al
jne 0x41b25e
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004082e0
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.00406b10
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407d60
add esp, 8
test al, al
je 0x41b220
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406aa0
mov eax, 3
jmp 0x41b305
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], 5
call fcn.00406b00
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00406b10
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00407d60
add esp, 8
test al, al
jne 0x41b2f2
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004082e0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push 0
push eax
call fcn.00406b20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406b10
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00407d60
add esp, 8
test al, al
je 0x41b2af
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406aa0
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