Function at 0x41cf80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489d79
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4b12c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x290], ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], edi
push dword [eax]
lea eax, [ebp - 0x284]
push str.drive_info
push eax
call fcn.00410af0
mov ecx, eax
call fcn.0040d850
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [ebp - 0x274], esi
je 0x41d320
lea ecx, [ebp - 0x2bc]
call fcn.0042ef00
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042fc30
test al, al
jne 0x41d029
lea ecx, [ebp - 0x2bc]
call fcn.0042c2e0
jmp 0x41d320
cmp dword [0x4b01f4], 0
je 0x41d111
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x491488
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d107
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x26c]
push ecx
movups xmmword [ebp - 0x26c], xmm0
movups xmmword [ebp - 0x25c], xmm0
call eax
mov ax, word [ebp - 0x26c]
cmp ax, 9
je 0x41d0fd
cmp ax, 6
je 0x41d0fd
cmp ax, 0xc
je 0x41d0fd
push str.IsWow64Process2
push 0x4914b4
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41d0f4
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41d0f4
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x288], cx
sete al
mov dword [0x4d8ab0], eax
jmp 0x41d107
xor eax, eax
mov dword [0x4d8ab0], eax
jmp 0x41d107
mov dword [0x4d8ab0], 1
mov dword [0x4b01f4], 0
cmp dword [0x4d8ab0], 0
mov edx, str.file_path_64
mov eax, str.file_path_32
mov dword [ebp - 0x238], 0
cmove edx, eax
mov dword [ebp - 0x234], 0xf
mov ecx, edx
mov byte [ebp - 0x248], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d145
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.0040b710
push 4
push str.name
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040b710
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042fc10
test al, al
je 0x41d2fd
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042fc10
test al, al
je 0x41d2fd
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x2a4]
push dword [ebp - 0x29c]
push eax
call fcn.0041cbd0
mov byte [ebp - 4], 4
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x41d7c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x290], eax
push 0x48e62c
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 5
call fcn.00407d90
test al, al
jne 0x41d22c
push 0
push 0x48e62c
lea ecx, [ebp - 0x290]
call fcn.00409e30
push 0xfde9
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042f960
mov edx, dword [ebp - 0x290]
or esi, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d279
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00460350
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp - 0x2a0]
push dword [ebp - 0x2a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d35d
mov edx, dword [ebp - 0x2a0]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d2de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2a4]
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41d2fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x230]
call fcn.00404410
lea ecx, [ebp - 0x248]
call fcn.00404410
lea ecx, [ebp - 0x2bc]
call fcn.0042c2e0
xor esi, esi
mov edx, dword [ebp - 0x270]
cmp edx, 0x10
jb 0x41d7a8
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d79e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d7d1
jmp 0x41d79e
lea edx, [ebp - 0x218]
lea ecx, [edi + 4]
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41d370
sub edx, edi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.00409e30
call fcn.00408700
mov ecx, eax
test ecx, ecx
je 0x41d7d6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x288], eax
push 0x48e62c
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 9
call fcn.00407d90
test al, al
jne 0x41d3d5
push 0
push 0x48e62c
lea ecx, [ebp - 0x288]
call fcn.00409e30
push 0xfde9
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0042f960
mov ecx, dword [eax]
mov eax, dword [ebp - 0x298]
mov byte [ebp - 4], 0xb
lea edx, [ecx - 0x10]
mov edi, dword [eax]
sub edi, 0x10
cmp edx, edi
je 0x41d469
cmp dword [edi + 0xc], 0
jl 0x41d45a
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x41d45a
push edx
call fcn.00407ed0
mov dword [ebp - 0x28c], eax
lea ecx, [edi + 0xc]
add esp, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41d447
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x28c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x41d469
push dword [ecx - 0xc]
push ecx
mov ecx, dword [ebp - 0x298]
call fcn.00409e30
mov edx, dword [ebp - 0x294]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d48a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x288]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d4ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x29c]
mov ecx, dword [0x4d8a78]
mov edi, dword [eax]
test ecx, ecx
jne 0x41d51a
push 0x4b00b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4d8a78], 0
jne 0x41d509
push 0x80
call fcn.00445398
add esp, 4
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x41d4f7
mov ecx, eax
call fcn.0040d360
mov ecx, eax
jmp 0x41d4f9
xor ecx, ecx
mov byte [ebp - 4], 8
xchg dword [ebp - 0x28c], eax
mov dword [0x4d8a78], ecx
push 0x4b00b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4d8a78]
push edi
lea eax, [ebp - 0x260]
push eax
call fcn.0040d970
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x41d535
mov edx, dword [edx]
mov edi, dword [ebp - 0x298]
test edx, edx
jne 0x41d543
xor ecx, ecx
jmp 0x41d563
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d550
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 8]
call fcn.00409e30
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x41d5b1
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d5a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d7e0
push edx
push ecx
call fcn.004453c8
add esp, 8
cmp dword [0x4b01f8], 0
je 0x41d670
push str.ntdll.dll
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x29c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x41d666
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d635
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x294]
push ecx
call eax
movzx eax, word [ebp - 0x288]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x29c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x29c], 0
je 0x41d666
cmp dword [ebp - 0x294], 5
jne 0x41d666
mov eax, dword [0x4d8ab4]
mov ecx, 1
cmp dword [ebp - 0x28c], ecx
cmove eax, ecx
mov dword [0x4d8ab4], eax
mov dword [0x4b01f8], 0
cmp dword [0x4d8ab4], 0
je 0x41d689
call fcn.0041db80
test eax, eax
je 0x41d689
mov eax, 1
jmp 0x41d68b
xor eax, eax
mov ecx, dword [ebp - 0x298]
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x28c], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov dword [ecx + 0xc], eax
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d6bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2a4]
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41d6de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x41d718
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d70e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d7e5
push edx
push ecx
call fcn.004453c8
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x41d76d
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41d763
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d7ea
push edx
push ecx
call fcn.004453c8
add esp, 8
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0042c2e0
mov esi, dword [ebp - 0x28c]
jmp 0x41d320
push edx
push ecx
call fcn.004453c8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445670
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00407d70
call fcn.00463879
push 0x80004005
call fcn.00407d70
call fcn.00463879
call fcn.00463879
call fcn.00463879
int3