Function at 0x10040a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3a1b
mov eax, dword fs:[0]
push eax
sub esp, 0xed8
mov eax, dword [0x10136674]
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 esi, ecx
mov dword [ebp - 0xed8], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xedc], eax
test eax, eax
je 0x10040d10
mov eax, dword [esi]
push esi
call dword [eax + 0x34]
xor edi, edi
mov dword [ebp - 0xee4], eax
test eax, eax
jle 0x10040d0b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0xc38
lea eax, [ebp - 0xed4]
push 0
push eax
call fcn.1007bae0
mov eax, dword [esi]
lea ecx, [ebp - 0xed4]
add esp, 0xc
push ecx
push edi
push esi
call dword [eax + 0x30]
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1007bae0
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push dword [ebp - 0xedc]
push 0x104
push eax
call fcn.100974f8
add esp, 0x1c
lea eax, [ebp - 0xed4]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10040b05
lea eax, [ebp - 0x218]
push eax
push str.file__s__is_not_exist
call fcn.100399a0
add esp, 8
jmp 0x10040cfe
push 0x100fddf8
lea eax, [ebp - 0x4ac]
push eax
call ebx
test eax, eax
je 0x10040b2f
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100528e0
add esp, 8
jmp 0x10040b3e
lea eax, [ebp - 0x218]
push eax
call fcn.10052bd0
add esp, 4
test eax, eax
jne 0x10040b62
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x4ac]
push eax
push str.check_sign_fail__signType__s___filepath__s_
call fcn.100399a0
add esp, 0xc
jmp 0x10040cfe
push 0x100fdf0c
lea eax, [ebp - 0xccc]
push eax
call ebx
test eax, eax
jne 0x10040bb4
mov eax, dword [ebp - 0x2a4]
cmp eax, 0xc350
ja 0x10040b85
test eax, eax
jne 0x10040b90
mov eax, 0xc350
mov dword [ebp - 0x2a4], eax
push eax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x6b4]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100174d0
add esp, 0x14
jmp 0x10040cfe
push 0x101082d8
lea eax, [ebp - 0xccc]
push eax
call ebx
test eax, eax
jne 0x10040cfe
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0xac4]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10040be0
sub eax, edx
sar eax, 1
push 0x80
lea ebx, [eax + 1]
lea eax, [ebp - 0x298]
mov dword [ebp - 0xee0], ebx
push eax
lea esi, [ebx*4]
lea eax, [ebp - 0x29c]
push esi
push eax
call fcn.10005360
add esp, 0x10
lea eax, [ebp - 0xac4]
push 0
push 0
push esi
push dword [ebp - 0x29c]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push eax
push 0
push 3
call esi
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10040cae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10040cae
mov ebx, dword [ebp - 0xee0]
lea eax, [ebp - 0xac4]
push 0
push 0
push 0
push 0
push ebx
push eax
push 0
push 3
call esi
mov esi, eax
lea eax, [ebp - 0x298]
push 0x80
push eax
lea eax, [ebp - 0x29c]
push esi
push eax
call fcn.10005360
add esp, 0x10
lea eax, [ebp - 0xac4]
push 0
push 0
push esi
push dword [ebp - 0x29c]
push ebx
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x10040d2e
push ebx
lea eax, [ebp - 0x8bc]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x29c]
lea eax, [ebp - 0x218]
push eax
call fcn.10017450
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x10040cf2
push eax
call fcn.10097203
add esp, 4
mov esi, dword [ebp - 0xed8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
inc edi
cmp edi, dword [ebp - 0xee4]
jl 0x10040a73
mov eax, 1
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.10069b58
mov esp, ebp
pop ebp
ret 8
push 0x80
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call fcn.10005460
add esp, 0xc
call fcn.10005ec0
int3