Function at 0x482b60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a70f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x74]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482dbb
call fcn.00528b80
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x482dbb
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ebx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.00404460
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x24]
mov byte [esp + 0x70], 2
call fcn.004831f0
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482c33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x34
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00580260
add esp, 0xc
mov byte [esp + 0x68], 3
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00529aa0
test eax, eax
je 0x482d61
cmp dword [esp + 0x24], 0
je 0x482d61
mov edx, dword [esp + 0x38]
lea edi, [esi + 4]
call fcn.004040f0
lea edi, [esi + 8]
lea eax, [esp + 0x18]
call fcn.004035d0
lea edi, [esi + 0xc]
lea eax, [esp + 0x14]
call fcn.004035d0
mov edx, dword [esp + 0x3c]
lea edi, [esi + 0x10]
call fcn.004040f0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], edx
mov eax, dword [eax + 8]
xor ebp, ebp
cmp eax, ebp
je 0x482ce2
cmp dword [ebx - 0xc], ebp
jl 0x482ce2
push eax
push ebx
call fcn.0057880c
add esp, 8
cmp eax, ebp
je 0x482ce2
sub eax, ebx
sar eax, 1
jne 0x482ce2
mov dword [esi + 0x1c], 1
jmp 0x482ce5
mov dword [esi + 0x1c], ebp
mov ecx, dword [esp + 0x74]
push ebp
push ebp
push 3
push ebp
push 1
push 0x80
push ecx
mov dword [esi + 0x14], 1
mov dword [esi + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x482d33
lea edx, [esp + 0x1c]
push edx
push ebp
xor eax, eax
push ebp
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x2c]
call fcn.004405a0
lea ecx, [esp + 0x14]
call fcn.00404510
lea ecx, [esp + 0x18]
call fcn.00404510
mov eax, 1
jmp 0x482dbd
lea esi, [esp + 0x2c]
call fcn.004405a0
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482d8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8