Function at 0x409fba
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4658a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0xc78]
mov dword fs:[0], eax
mov esi, ecx
push ecx
push 0x47b610
push ecx
lea ecx, [esp + 0x38]
call fcn.0040b03b
mov ebp, 0x489028
xor ebx, ebx
push 0x48a0a8
mov ecx, ebp
mov dword [esp + 0xc84], ebx
call fcn.00437c60
push eax
lea ecx, [esp + 0x1c]
call fcn.004029e6
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0xc84], 1
mov ecx, dword [esi + 0x50]
push eax
call fcn.00416f70
mov byte [esp + 0xc80], 3
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x40a071
push dword [esi]
call fcn.0040a25e
test al, al
jne 0x40a075
add esi, 4
cmp esi, edi
jne 0x40a063
push ebx
push ebp
push 0x4889f8
push ebx
push dword [esi]
call fcn.0043a37b
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40a21c
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0041a7ad
mov byte [esp + 0xc80], 4
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x40a188
push 0x47a8b4
lea ecx, [esp + 0x18]
call fcn.004045e9
test eax, eax
je 0x40a188
push dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x40a114
mov edi, 0x104
push edi
lea ecx, [esp + 0x18]
call fcn.00401662
mov ecx, dword [esp + 0x14]
mov edx, eax
cmp dword [ecx - 8], edi
jge 0x40a0fd
push 0x80070057
call fcn.00401697
mov dword [ecx - 0xc], edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x40a12c
push str.c:DriversBackup
lea ecx, [esp + 0x18]
call fcn.00401761
mov esi, str.hwang
lea edi, [esp + 0x474]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x486]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x480]
push dword [esp + 0x14]
push 0x47a728
push eax
call fcn.00437dbf
add esp, 0xc
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x54], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x30]
call fcn.0040adcb
cmp eax, 1
jne 0x40a210
call fcn.00402f0e
push str.DriversBackup
lea ecx, [esp + 0x20]
call fcn.0040178b
lea eax, [esp + 0x25e]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc84], 5
call fcn.0040178b
mov byte [esp + 0xc80], 6
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 3
jne 0x40a1ec
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push dword [eax - 0xc]
push eax
call fcn.0040af04
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.0041a5fa
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401551
lea ecx, [esp + 0x20]
call fcn.00402dd6
push dword [esp + 0x468]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [esp + 0xc78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc60]
xor ecx, esp
call fcn.00437bed
add esp, 0xc70
ret 0x10