Function at 0x468d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aadd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x54a19c], 0
jne 0x468d5c
mov edx, 0x468bd0
mov byte [0x54a19c], 1
mov ecx, 5
call fcn.0046be10
mov esi, dword [ebx + 0xc]
mov ecx, esi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x468d7f
push dword [ebx + 0x24]
push 0
push 0x1fffff
call edi
mov ecx, eax
mov dword [ebx + 0xc], ecx
cmp dword [ebx + 0x24], 0
mov eax, ecx
je 0x468f33
cmp byte [0x547ea4], 0
je 0x468f33
test ecx, ecx
jne 0x468f33
cmp dword [0x549340], eax
je 0x468dc5
push ecx
push str.losySys
mov ecx, 0x5492d0
call fcn.004347b0
mov ecx, eax
mov dword [0x549320], ecx
mov eax, dword [ebx + 0xc]
jmp 0x468dcb
mov ecx, dword [0x549320]
test ecx, ecx
je 0x468f33
cmp byte [0x549076], 0
jne 0x468f27
mov ecx, 0x115
call fcn.00425b20
mov edx, eax
mov ecx, 0x8b
xor eax, eax
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [edx + 0x10]
mov dword [edx + 4], 1
mov dword [edx + 0xc], 0x105
mov dword [edx + 8], eax
mov dword [edx], 0
push 0
push 0x548760
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0042dfa0
push 0
push str.help.sys
lea ecx, [ebp - 0x14]
call fcn.00424170
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x468e45
mov eax, dword [esi + 8]
jmp 0x468e47
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x468ef6
test esi, esi
je 0x468e5f
mov edi, dword [esi + 8]
jmp 0x468e61
xor edi, edi
mov eax, dword [0x5493d0]
test eax, eax
je 0x468e73
cmp eax, 0xffffffff
jne 0x468ef6
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..kuodafu_121007124
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5493d0], eax
test eax, eax
je 0x468e9e
cmp eax, 0xffffffff
jne 0x468eec
mov edx, edi
call fcn.0042de60
test al, al
je 0x468ef6
mov eax, dword [0x5493d0]
mov dword [0x5493d4], 1
test eax, eax
je 0x468ec1
cmp eax, 0xffffffff
jne 0x468ef6
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..kuodafu_121007124
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5493d0], eax
test eax, eax
je 0x468ef6
cmp eax, 0xffffffff
je 0x468ef6
mov dword [0x5493d4], 1
mov byte [0x549076], 1
mov dword [ebp - 4], 1
test esi, esi
je 0x468f17
add dword [esi + 4], 0xffffffff
jne 0x468f17
push esi
call fcn.004eb01a
add esp, 4
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ecx
push dword [ebx + 0x24]
call fcn.0042dea0
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x468f52
push dword [ebx + 0x24]
push eax
push 0x410
call edi
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x468f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x468f7e
cmp dword [ebx + 0x18], 0
jne 0x468f6c
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x468f6c
cmp word [ecx], 0
jne 0x468f7e
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x18], 0
call fcn.00468c70
mov eax, dword [ebx + 0xc]
test esi, esi
jne 0x468ff5
test eax, eax
je 0x468ff5
push 0x54a184
mov dword [ebx + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x24]
mov ecx, 0x54a164
push eax
call fcn.00469020
push 0x54a184
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0042e1c0
push eax
mov ecx, esi
call fcn.0042ec20
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x468fe6
add dword [eax + 4], 0xffffffff
jne 0x468fe6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x468fe6
push eax
call fcn.004eb01a
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x468ff1
mov eax, dword [eax + 8]
jmp 0x468ff3
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret