Function at 0x10005080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b1a3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x102159fc]
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 edi, ecx
mov eax, dword [edi]
or eax, dword [edi + 4]
push 0
jne 0x100050e9
call fcn.1016847f
mov ecx, dword [edi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [edi + 8]
shl ecx, 2
mov dword [edi], eax
mov dword [edi + 4], edx
test ecx, ecx
jle 0x100050f6
push ecx
push 0
call fcn.1014e8e3
cdq
add esp, 8
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x100050f6
call fcn.1016847f
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
lea eax, [edi + 0x110]
xor esi, esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], esi
call fcn.10004390
mov dword [ebp - 4], esi
cmp dword [edi + 0x128], esi
je 0x100051a0
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push 1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea ecx, [ebp - 0x28]
mov eax, esp
push ecx
push eax
call fcn.1014f9a5
mov ecx, dword [edi + 0x128]
add esp, 8
push esi
call fcn.10002a60
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005194
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.10002700
call fcn.1014dbed
add esp, 0x1c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10001e10
jmp 0x100052b1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10001e10
cmp dword [ebp - 0x18], 0
je 0x100052b1
push 0x1869f
push 0x2710
call fcn.1014e8e3
add esp, 8
lea ecx, [ebp - 0x28]
mov esi, eax
push 1
push 0x1018f704
call fcn.10005480
push 5
push str.b7742
lea ecx, [ebp - 0x28]
call fcn.10005480
push 1
push 0x1018f710
lea ecx, [ebp - 0x28]
call fcn.10005480
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1014e098
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 2
jb 0x1000520a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005480
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.10002840
lea ecx, [ebp - 0x9c]
call fcn.1014ceb2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1014d211
lea ecx, [ebp - 0x9c]
call fcn.1014d6ea
mov ebx, eax
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov dword [ebp - 0x5c], eax
jne 0x1000526b
mov dword [ebp - 0x5c], 1
mov eax, 1
inc eax
push eax
call fcn.1014bbb9
mov ecx, dword [ebp - 0x5c]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.101640e0
mov ecx, dword [ebx + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [ebx]
je 0x100052a2
nop dword [eax]
mov eax, dword [ebx]
mov al, byte [edx + eax]
mov byte [edx + esi], al
inc edx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp edx, eax
jb 0x10005290
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.1014cf33
lea eax, [ebp - 0x68]
mov dword [ebp - 0x60], 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x5c]
push esi
call fcn.101501c7
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
jne 0x100052f6
push 0x8d
call fcn.10150891
add esp, 4
test esi, esi
je 0x1000530f
push esi
call fcn.1014bbc2
add esp, 4
jmp 0x1000530f
push eax
mov ecx, edi
call fcn.10004de0
test esi, esi
je 0x1000530b
push esi
call fcn.1014bbc2
add esp, 4
mov byte [edi + 0xc], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1000533f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005335
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000535b
push edx
push ecx
call fcn.1014b814
add esp, 8
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.1014bb85
mov esp, ebp
pop ebp
ret
call fcn.101675c9
int3