Function at 0x413a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e23cb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5221ec]
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, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
cmp dword [esi + 0x14], 8
jb 0x413a56
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413d96
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x413a6f
mov edi, dword [esi]
call fcn.00406540
mov ecx, eax
test ecx, ecx
je 0x413db5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00405d20
test al, al
jne 0x413ac9
test edi, edi
jne 0x413aa5
xor ecx, ecx
jmp 0x413abf
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ab0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.00408a80
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0048bdd0
add esp, 8
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a6c0
mov edx, dword [ebp - 0x54]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413b3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x413b56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
xor eax, eax
mov dword [ebp - 0x40], 0
push str..exe
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0040a6c0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 1
push eax
call fcn.00413240
mov edx, dword [ebp - 0x3c]
add esp, 8
test eax, eax
mov dword [ebp - 4], 5
sete al
xor ebx, ebx
mov byte [ebp - 0x29], al
cmp edx, 8
jb 0x413be2
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413bd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413dbf
push edx
push ecx
call fcn.0041d7b6
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
jne 0x413c29
push 4
xor eax, eax
mov dword [ebp - 0x40], ebx
push str..dll
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0040a6c0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
mov ebx, 2
push eax
mov dword [ebp - 0x34], ebx
call fcn.00413240
add esp, 8
mov byte [ebp - 0x29], 0
test eax, eax
jne 0x413c2d
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 5
test ebx, ebx
je 0x413c74
mov edx, dword [ebp - 0x3c]
xor ebx, ebx
cmp edx, 8
jb 0x413c74
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413c6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413dc4
push edx
push ecx
call fcn.0041d7b6
add esp, 8
cmp byte [ebp - 0x29], 0
jne 0x413cbf
push 4
xor eax, eax
mov dword [ebp - 0x40], 0
push str..tpi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.0040a6c0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x28]
or ebx, 4
push eax
mov dword [ebp - 0x34], ebx
call fcn.00413240
add esp, 8
mov byte [ebp - 0x29], 0
test eax, eax
jne 0x413cc3
mov byte [ebp - 0x29], 1
test bl, 4
je 0x413d02
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x413d02
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413cf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413dc9
push edx
push ecx
call fcn.0041d7b6
add esp, 8
cmp byte [ebp - 0x29], 0
jne 0x413d31
cmp dword [esi + 0x14], 8
jb 0x413d10
mov esi, dword [esi]
push 0x2010
push 0
push 0
push 1
push esi
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
call fcn.00404ca0
jmp 0x413d96
cmp dword [esi + 0x14], 8
jb 0x413d39
mov esi, dword [esi]
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x413d27
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
cmp edx, 8
jb 0x413d8f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413d85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413dce
push edx
push ecx
call fcn.0041d7b6
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x38]
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.0041d647
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ce0
call fcn.004b71ee
call fcn.004b71ee
call fcn.004b71ee
call fcn.004b71ee
int3