Function at 0x4ad900
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a0f60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x58]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
mov ebp, dword [esp + 0x5c]
je 0x4adaf5
push ebp
call edi
test eax, eax
je 0x4adaf5
mov eax, 0xa
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x30]
mov byte [esp + 0x50], 3
call fcn.00408ad0
lea edi, [esp + 0x18]
call fcn.00408ad0
lea eax, [esp + 0x30]
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [edi], eax
call fcn.004adb50
cmp eax, ebx
je 0x4adaa9
lea ecx, [esp + 0x18]
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [edi], eax
call fcn.004adb50
cmp eax, ebx
je 0x4adaa9
mov edx, dword [esp + 0x34]
cmp edx, dword [esp + 0x1c]
je 0x4ada23
lea eax, [esp + 0x18]
call fcn.00408b40
lea eax, [esp + 0x30]
call fcn.00408b40
lea ecx, [esp + 0x58]
call fcn.00404510
lea ecx, [esp + 0x5c]
call fcn.00404510
mov eax, 1
jmp 0x4adb37
lea ecx, [esp + 0x30]
call fcn.00403660
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00403660
cmp esi, ebx
mov edi, eax
je 0x4ada80
lea ecx, [ecx]
cmp edi, ebx
je 0x4ada80
mov ecx, dword [edi]
push esi
call fcn.00419280
test eax, eax
jne 0x4ad9f5
mov ecx, dword [edi + 4]
lea eax, [esi + 4]
push eax
call fcn.00419280
test eax, eax
jne 0x4ad9f5
lea ecx, [esp + 0x30]
push ecx
mov eax, esi
call fcn.004c4960
lea edx, [esp + 0x18]
mov esi, eax
push edx
mov eax, edi
call fcn.004c4960
cmp esi, ebx
mov edi, eax
jne 0x4ada40
lea eax, [esp + 0x18]
call fcn.00408b40
lea eax, [esp + 0x30]
call fcn.00408b40
lea ecx, [esp + 0x58]
call fcn.00404510
lea ecx, [esp + 0x5c]
call fcn.00404510
jmp 0x4adb35
lea edi, [esp + 0x18]
call fcn.00408ad0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4adac3
push eax
call fcn.0057876f
add esp, 4
lea edi, [esp + 0x30]
call fcn.00408ad0
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4adadd
push eax
call fcn.0057876f
add esp, 4
mov byte [esp + 0x50], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4adb15
mov ecx, dword [esi]
push esi
jmp 0x4adb0e
lea eax, [esi - 0x10]
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4adb15
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x50], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4adb35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8