Function at 0x4160b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d9c
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4e64ec]
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 ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x200
push 0
push eax
mov dword [ebp - 0x420], edi
call fcn.00461360
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x100
push eax
call fcn.00454ef0
xor esi, esi
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x218]
push str._s_s__03d.dmp
push 0x104
push eax
call fcn.00416840
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4161cf
inc esi
cmp esi, 0xa
jl 0x416112
lea eax, [ebp - 0x418]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x218]
push str._s_s_010.dmp
push 0x104
push eax
call fcn.00416840
add esp, 0x14
call fcn.00409ca0
mov ecx, eax
test ecx, ecx
je 0x416351
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x4161b9
movzx eax, ax
lea ecx, [ebp - 0x41c]
push eax
call fcn.0040a8d0
jmp 0x416242
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4161c2
jmp 0x41622b
call fcn.00409ca0
mov ecx, eax
test ecx, ecx
je 0x41635b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x416211
movzx eax, ax
lea ecx, [ebp - 0x41c]
push eax
call fcn.0040a8d0
jmp 0x416242
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416220
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040abc0
mov esi, dword [ebp - 0x41c]
mov ecx, ebx
push esi
mov dword [ebp - 4], 2
call fcn.004168c0
test eax, eax
je 0x4162d0
mov ecx, dword [esi - 0x10]
add esi, 0xfffffff0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x41627c
cmp ecx, dword [esi]
jne 0x41627c
mov ebx, esi
lock inc dword [eax]
jmp 0x4162ab
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x416365
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.00409a90
add esp, 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
lea ecx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416331
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x416331
call fcn.00409ca0
mov ecx, eax
test ecx, ecx
je 0x41636a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x4bb7dc
mov byte [ebp - 4], 3
mov ecx, edi
test eax, 0xffff0000
jne 0x416306
movzx eax, ax
push eax
call fcn.0040a8d0
jmp 0x416312
push 0
push 0x4bb7dc
call fcn.0040abc0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416331
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0045b907
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004099e0
push 0x80004005
call fcn.004099e0
call fcn.0040acf0
push 0x80004005
call fcn.004099e0
int3