Function at 0x4193af
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e549
mov eax, dword fs:[0]
push eax
mov eax, 0x1884
call fcn.0050ead0
mov eax, dword [0x585698]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1888], eax
mov eax, dword [ebp + 0x14]
push 0x1862
mov dword [ebp - 0x1880], eax
xor edi, edi
lea eax, [ebp - 0x1878]
push edi
push eax
mov esi, ecx
call fcn.004f18b0
add esp, 0xc
mov byte [ebp - 0x1874], 0x62
cmp dword [esi], edi
jne 0x419423
push edi
call fcn.004f5c9c
pop ecx
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebp - 0x1873], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x186f], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x186b], eax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x1867]
call fcn.0041937b
lea edi, [ebp + eax - 0x1867]
pop ecx
lea eax, [esi + 0x4c]
push eax
mov eax, edi
call fcn.0041937b
add edi, eax
pop ecx
lea eax, [esi + 0x84c]
push eax
mov eax, edi
call fcn.0041937b
add edi, eax
mov eax, dword [esi + 0x184c]
mov dword [edi], eax
add edi, 4
mov byte [edi], 0x65
inc edi
lea eax, [ebp - 0x1878]
sub edi, eax
cmp dword [ebp + 0xc], 0
lea eax, [edi - 4]
pop ecx
mov dword [ebp - 0x188c], edi
mov dword [ebp - 0x1878], eax
je 0x4194c2
cmp dword [ebp + 0xc], edi
je 0x4194c2
xor al, al
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.004f189b
leave
ret 0x10
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x1884], esi
mov dword [ebp - 0x1890], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x20]
cmp dword [eax - 0xc], edi
jne 0x4194ee
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4194a4
mov dword [ebp - 0x187c], edi
push eax
mov byte [ebp - 4], 1
call fcn.0042650b
cmp eax, edi
je 0x419562
cmp eax, 0xffffffff
je 0x419562
mov dword [ebp - 0x187c], eax
or dword [ebp - 0x1880], 0xffffffff
lea eax, [ebp - 0x1880]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x187c]
push eax
call fcn.00406138
test al, al
jne 0x4195bc
cmp dword [ebp - 0x1880], 0xffffffff
je 0x41954f
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
test esi, esi
je 0x41955a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1884]
jmp 0x4194e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x419595
mov edi, ebx
call fcn.00418f2b
mov eax, dword [ebx + 0x20]
push 2
push 1
push 0x40000000
push eax
lea eax, [ebp - 0x187c]
push eax
call fcn.004102e1
test eax, eax
je 0x41950d
cmp dword [ebp - 0x187c], 0
mov eax, dword [ebp - 0x1880]
mov byte [eax], 0
je 0x4194e5
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4194e5
mov edi, dword [ebp - 0x1888]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4195dc
xor esi, esi
push esi
push esi
push eax
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4195f3
inc dword [ebx + 0x28]
push 2
push 0
push 0
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x419633
mov eax, ebx
call fcn.00419005
cmp dword [ebp - 0x1880], 0xffffffff
je 0x41961c
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x187c], esi
je 0x41955a
push dword [ebp - 0x187c]
jmp 0x419554
push dword [ebp - 0x188c]
lea eax, [ebp - 0x1878]
push eax
lea eax, [ebp - 0x187c]
push eax
call fcn.00410353
test eax, eax
je 0x41969b
mov eax, ebx
call fcn.00419005
cmp dword [ebp - 0x1880], 0xffffffff
je 0x419672
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x187c], esi
je 0x419686
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
push dword [ebp - 0x1884]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x4194a6
push esi
push esi
push 4
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
or edi, 0xffffffff
cmp eax, edi
je 0x4196c4
push 8
add ebx, 0x28
push ebx
lea eax, [ebp - 0x187c]
push eax
call fcn.00410353
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4196d9
call fcn.00426f67
cmp dword [ebp - 0x1880], edi
je 0x4196f1
push edi
push edi
push esi
push esi
push dword [ebp - 0x1880]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x187c], esi
je 0x419705
push dword [ebp - 0x187c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x419688