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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
push 0x1c0
lea eax, [esp + 0x34]
mov ebx, edx
push 0
push eax
mov edi, ecx
call fcn.0049ef70
add esp, 0xc
mov dword [esp + 0x28], 0x5c3a41
push 0x14000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x420bf7
lea esi, [eax + 0x400]
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x20], esi
mov ecx, 0x800
add esi, 0x104
mov edx, 0x400
mov dword [esp + 0x48], esi
xor eax, eax
add esi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x4c], esi
add esi, ecx
mov dword [esp + 0xc], esi
add esi, 0x1000
mov dword [esp + 0x1c], esi
add esi, edx
mov dword [esp + 0x10], esi
add esi, edx
mov dword [esp + 0x18], esi
add esi, edx
mov dword [esp + 0x24], esi
add esi, edx
mov dword [esp + 0x14], esi
add esi, edx
mov dword [esp + 0x1d0], esi
add esi, ecx
xor ecx, ecx
mov dword [esp + 0x1d4], esi
add esi, edx
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x1d8], esi
add esi, edx
cmp byte [edi + 0x11], 0x53
mov byte [esp + 0x70], cl
sete al
mov byte [esp + 0xb0], cl
mov dword [esp + 0x1bc], eax
mov eax, dword [edi + 0x124]
mov byte [esp + 0x130], cl
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1cc], eax
test ebx, ebx
jne 0x420824
cmp dword [edi + 0x1c], ecx
je 0x420824
lea eax, [edi + 0x20]
mov dword [esp + 0x1c4], eax
lea eax, [esp + 0x1c0]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x420845
lea ecx, [esp + 0x1c0]
call fcn.0048dd30
mov ecx, dword [esp + 0x1c0]
lea edx, [esp + 0x1e4]
call fcn.0048de60
test eax, eax
je 0x420881
cmp dword [esp + 0x1e4], 0
je 0x420881
mov ecx, dword [esp + 0x1c0]
mov edx, esi
mov dword [esp + 0x1e8], edx
add esi, 0x4b0
call fcn.0048df20
call fcn.0040a6a4
cmp byte [edi + 0x15], 0
mov eax, dword [0x51ebfc]
push dword [edi + 0x128]
cmovne eax, dword [0x51ec00]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi + 0xba4]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x1b8], eax
cmp cx, word [edi + 0x194]
jne 0x42090a
push dword [edi + 0x16c]
push ecx
push 0x100418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4208ee
lea edx, [edi + 0x194]
mov ecx, ebx
call fcn.0041e9d1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x3a0]
xor ecx, ecx
cmp cx, word [eax]
jne 0x42090a
lea ecx, [edi + 0x194]
push ecx
push eax
call fcn.004cb981
pop ecx
pop ecx
cmp dword [edi + 0x39c], 0x454c4946
lea eax, [edi + 0x3a0]
jne 0x420933
mov ebx, dword [esp + 0xc]
mov ecx, eax
mov edx, ebx
call fcn.0041f8a8
mov al, byte [ebx]
mov byte [esp + 0x28], al
mov eax, ebx
jmp 0x420937
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
push ecx
push ecx
push 0x400
push ebx
push 0xffffffffffffffff
push eax
push ecx
push ecx
mov byte [ebx], cl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x420968
push 0x400
push dword [esp + 0x10]
push ebx
call fcn.004cb853
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ebx, [edi + 0x194]
xor ecx, ecx
push ecx
push ecx
push 0x400
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
mov byte [eax], cl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42099f
push 0x400
push ebx
push dword [esp + 0x18]
call fcn.004cb853
add esp, 0xc
mov eax, dword [esp + 0x18]
mov byte [eax], 0
push dword [edi + 0x170]
push 0
push 0x100418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4209d1
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0041ea6e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov edx, eax
mov ecx, dword [esp + 0x14]
push ecx
mov byte [eax], 0
mov byte [ecx], 0
mov ecx, dword [esp + 0x14]
call fcn.0041f2c0
mov eax, dword [edi + 0x39c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x2c]
pop ecx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [edi + 0x39c], 0x454c4946
mov dword [esp + 0x64], eax
je 0x420a68
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420aff
lea eax, [esp + 0x1b4]
mov ecx, ebx
push eax
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x7c]
call fcn.0040c63c
mov eax, dword [esp + 0x1e4]
xor ecx, ecx
add esp, 0x14
mov byte [eax], cl
mov eax, dword [esp + 0x1d4]
mov byte [eax], cl
mov eax, dword [esp + 0x1d8]
mov byte [eax], cl
lea ecx, [esp + 0x70]
push dword [esp + 0x1d8]
mov edx, dword [esp + 0x1d4]
push dword [esp + 0x1d8]
call fcn.0041f10d
pop ecx
pop ecx
call fcn.0040cd9c
test eax, eax
je 0x420aff
mov edx, esi
mov dword [esp + 0x1ec], esi
mov ecx, ebx
call fcn.0040cdee
neg eax
sbb eax, eax
and dword [esp + 0x1ec], eax
cmp byte [edi + 0x14], 0
je 0x420b17
lea ecx, [esp + 0x30]
call fcn.004204d9
cmp eax, 0x70
je 0x420be4
cmp dword [esp + 0x1c4], 0
je 0x420b97
push 3
push 0x50ca84
push dword [esp + 0x1cc]
call fcn.004cbf60
add esp, 0xc
test eax, eax
jne 0x420b97
and dword [esp + 0x14], eax
xor bl, bl
call fcn.0041e527
mov ecx, dword [0x52e6e0]
test ecx, ecx
je 0x420b97
cmp dword [edi + 0x1c], 0x104
jne 0x420b72
mov eax, dword [esp + 0x1c4]
cmp byte [eax + 0x103], 0x7e
jne 0x420b72
mov byte [eax + 0x103], bl
add bl, 0x7e
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push 0x42059a
call ecx
test bl, bl
je 0x420b97
mov ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x1c4]
mov byte [ecx + eax - 1], bl
cmp byte [0x51e6c8], 0
je 0x420ba9
lea ecx, [esp + 0x30]
call fcn.004245d4
cmp dword [0x51e6e0], 0
je 0x420bbb
lea ecx, [esp + 0x30]
call fcn.00424819
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x420be4
cmp byte [ecx], 0
je 0x420be4
call fcn.0041fb11
test eax, eax
jne 0x420be4
push dword [edi + 0x16c]
xor ecx, ecx
lea edx, [esp + 0x34]
inc ecx
call fcn.0041f9e3
pop ecx
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, edi
call fcn.0041e227
mov ecx, dword [esp + 0x1f4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.0049d307
mov esp, ebp
pop ebp
ret