Function at 0x10004030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079e56
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa58
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004077
xor eax, eax
jmp 0x100044ba
push 4
lea ecx, [ebp - 0xa20]
call fcn.100062d0
lea ecx, [ebp - 0xa20]
call fcn.10002ad0
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0xa24]
call fcn.100062d0
lea ecx, [ebp - 0xa24]
call fcn.10002ad0
mov byte [ebp - 4], 1
mov dword [ebp - 0xa28], 0
push 0x17
push 0
push 0x10087dd0
lea ecx, [ebp - 0xa20]
call fcn.10003d20
mov dword [ebp - 0xa28], eax
cmp dword [ebp - 0xa28], 0
jge 0x10004115
mov dword [ebp - 0xa44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa44]
jmp 0x100044ba
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa20]
push ecx
lea ecx, [ebp - 0xa24]
call fcn.10002420
jmp 0x10004143
mov dword [ebp - 4], 1
jmp 0x1000417b
push 0
lea ecx, [ebp - 0xa24]
call fcn.10003390
movzx edx, al
test edx, edx
je 0x100041c5
mov dword [ebp - 0xa4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa4c]
jmp 0x100044ba
lea ecx, [ebp - 0xa20]
call fcn.100034b0
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xa2c]
push ecx
mov edx, dword [ebp - 0xa2c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
test eax, eax
jge 0x10004228
mov dword [ebp - 0xa50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa50]
jmp 0x100044ba
cmp dword [ebp + 0x10], 0
je 0x10004291
lea ecx, [ebp - 0xa20]
call fcn.100034b0
mov dword [ebp - 0xa30], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xa30]
push eax
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
jge 0x10004291
mov dword [ebp - 0xa54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa54]
jmp 0x100044ba
lea ecx, [ebp - 0xa20]
call fcn.100034b0
mov dword [ebp - 0xa34], eax
push 5
mov ecx, dword [ebp - 0xa34]
push ecx
mov edx, dword [ebp - 0xa34]
mov eax, dword [edx]
mov ecx, dword [eax + 0x3c]
call ecx
test eax, eax
jge 0x100042f2
mov dword [ebp - 0xa58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa58]
jmp 0x100044ba
mov dword [ebp - 0xa68], 0x400
push 0x800
push 0
lea edx, [ebp - 0xa1c]
push edx
call fcn.10054b00
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x400
lea ecx, [ebp - 0xa1c]
push ecx
call fcn.10005990
lea edx, [ebp - 0xa1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp + 0x1c], 0
jl 0x10004396
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.10054b00
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0xa20]
call fcn.100034b0
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0xa38]
push edx
mov eax, dword [ebp - 0xa38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
call edx
lea ecx, [ebp - 0xa20]
call fcn.100034b0
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0xa1c]
push eax
mov ecx, dword [ebp - 0xa3c]
push ecx
mov edx, dword [ebp - 0xa3c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
test eax, eax
jge 0x100043fc
mov dword [ebp - 0xa5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa5c]
jmp 0x100044ba
lea ecx, [ebp - 0xa24]
call fcn.100034b0
mov dword [ebp - 0xa40], eax
push 1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xa40]
push eax
mov ecx, dword [ebp - 0xa40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
test eax, eax
jge 0x1000445e
mov dword [ebp - 0xa60], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa60]
jmp 0x100044ba
cmp dword [ebp + 0x20], 0
je 0x10004489
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 0xa64], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa20]
call fcn.10003090
mov eax, dword [ebp - 0xa64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret