Function at 0x40c0c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e569
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4786a0]
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x18c], edi
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x46cea0
mov dword [ebp - 4], edi
call fcn.00401110
lea ecx, [ebp - 0x190]
push ecx
mov ecx, 0x46cea0
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c1da
push esi
mov ecx, 0x46cea0
call fcn.00401110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c16e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x188]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.00445447
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x11c], ecx
cmp eax, edi
jne 0x40c301
mov dword [ebp - 0x11c], edi
mov edx, dword [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x184]
call fcn.00441430
mov esi, eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
add esp, 4
cmp eax, ecx
je 0x40c22d
push eax
call fcn.00446332
add esp, 4
test esi, esi
je 0x40c2a8
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
call eax
add eax, 0x10
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 3
xor esi, esi
movzx ecx, byte [ebp + esi - 0x12c]
push ecx
push str._02x
lea edi, [ebp - 0x18c]
call fcn.00422e30
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi - 0xc]
add esp, 8
push eax
push edi
lea ebx, [ebp - 0x190]
call fcn.00420540
inc esi
cmp esi, 0x10
jl 0x40c250
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x188]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40c371
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40c361
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c361
call fcn.004218e0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c2f6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x188], ebx
jmp 0x40c371
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edi, [ebp - 0x118]
lea ecx, [ebx + 1]
lea esi, [ebp - 0x11c]
call fcn.00424290
mov edx, dword [ebp - 0x18c]
lea eax, [ebx + ebx + 2]
push eax
push edx
push eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.004454a7
add esp, 0x10
cmp eax, 0x50
ja case.0x40c346.1
movzx ecx, byte [eax + 0x40c3c4]
jmp dword [ecx*4 + 0x40c3b4]
push 0x8007000e
call fcn.00401680
push 0x80070057
call fcn.00401680
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x188]
push ecx
call fcn.00401330
mov eax, dword [ebp - 0x188]
add eax, 0xfffffff0
call fcn.004218e0
mov esi, dword [ebp - 0x194]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c162
push 0x80004005
call fcn.00401680
nop
std
rol dword [eax], 77
ret