Function at 0x499c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push eax
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp + 8]
call fcn.00464b60
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x499c97
lea ecx, [ebp + 8]
call fcn.0044f1c0
lea ecx, [ebp + 8]
push ecx
push esi
call fcn.0042fce0
add esp, 8
test al, al
je 0x499c86
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x499ca7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x499cbd
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 0x499cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
test ecx, 0xfffffffc
jne 0x499cdd
lea ecx, [ebp + 8]
call fcn.00442750
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 4]
call fcn.00442720
mov eax, dword [ebp - 4]
cmp dword [eax - 4], 1
jle 0x499cfe
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 4]
call fcn.00439d30
mov eax, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00439340
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
mov edi, eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
add edi, 0x10
xor ebx, ebx
sar eax, 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
test eax, eax
ja 0x499da3
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499d55
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499d74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x499d93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x499db5
call fcn.0051f89a
mov edx, dword [esi + 0x10]
lea eax, [edx + ebx*4]
push eax
push 0x560120
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0044f400
add esp, 0xc
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.0044f380
add esp, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0044f5c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499e06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499e25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x499e46
cmp eax, 5
setne al
test al, al
je 0x499e63
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
inc eax
sar ecx, 2
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x499da0
jmp 0x499d39
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x499e7f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499e9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x499ebd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4