Function at 0x4136f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5211e4]
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 0x413736
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413a76
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x41374f
mov edi, dword [esi]
call fcn.00406540
mov ecx, eax
test ecx, ecx
je 0x413a95
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 0x4137a9
test edi, edi
jne 0x413785
xor ecx, ecx
jmp 0x41379f
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413790
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.0048ba30
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 0x4137e0
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 0x41381a
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 0x413836
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.00412f20
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 0x4138c2
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4138b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a9f
push edx
push ecx
call fcn.0041d496
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
jne 0x413909
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.00412f20
add esp, 8
mov byte [ebp - 0x29], 0
test eax, eax
jne 0x41390d
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 5
test ebx, ebx
je 0x413954
mov edx, dword [ebp - 0x3c]
xor ebx, ebx
cmp edx, 8
jb 0x413954
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41394a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aa4
push edx
push ecx
call fcn.0041d496
add esp, 8
cmp byte [ebp - 0x29], 0
jne 0x41399f
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.00412f20
add esp, 8
mov byte [ebp - 0x29], 0
test eax, eax
jne 0x4139a3
mov byte [ebp - 0x29], 1
test bl, 4
je 0x4139e2
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4139e2
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4139d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aa9
push edx
push ecx
call fcn.0041d496
add esp, 8
cmp byte [ebp - 0x29], 0
jne 0x413a11
cmp dword [esi + 0x14], 8
jb 0x4139f0
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 0x413a76
cmp dword [esi + 0x14], 8
jb 0x413a19
mov esi, dword [esi]
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x413a07
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 0x413a6f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413a65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413aae
push edx
push ecx
call fcn.0041d496
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.0041d327
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ce0
call fcn.004b6e3e
call fcn.004b6e3e
call fcn.004b6e3e
call fcn.004b6e3e
int3