Function at 0x410050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4740c8
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x4100b4
lea eax, [ebp + 0x10]
push eax
push ebx
call fcn.00466c20
add esp, 8
cmp dword [ebp + 0x10], 0
ja 0x41008f
cmp eax, 0x3200000
jbe 0x4100b4
push 0
push 0x47f268
push 0x47f27c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x47e5ac
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4100ea
push esi
push ebx
call fcn.0040fd80
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x410379
mov esi, dword [ebp + 0xc]
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x410106
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.0040fa50
mov edi, dword [ebp - 0x14]
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4101aa
push esi
lea ecx, [ebp - 0x10]
call fcn.004016a0
push ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004016a0
push 0
push 1
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040f240
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x410186
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41032a
mov ecx, dword [edx]
push edx
jmp 0x410325
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4101c6
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.0040f8a0
mov esi, dword [ebp - 0x10]
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x410272
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004016a0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004016a0
push 0
push 2
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.0040f240
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41030d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41030d
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41028e
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.0040f6f0
mov ebx, dword [ebp + 0x10]
add esp, 4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41035e
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004016a0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004016a0
push 0
push 3
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 8
call fcn.0040f240
add esp, 0x14
lea ecx, [ebp - 0x18]
call fcn.00419ae0
lea ecx, [ebp - 0x1c]
call fcn.00419ae0
lea ecx, [ebp + 0x10]
call fcn.00419ae0
or ebx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41032a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x410348
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0x10]
call fcn.00419ae0
lea ecx, [ebp - 0x10]
call fcn.00419ae0
lea ecx, [ebp - 0x14]
call fcn.00419ae0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret