Function at 0x1002ac40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10172df3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x101d5024]
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 0x1002aca9
call fcn.10050afc
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 0x1002acb6
push ecx
push 0
call fcn.10039617
cdq
add esp, 8
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x1002acb6
call fcn.10050afc
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
lea eax, [edi + 0x110]
mov dword [ebp - 0x5c], ebx
push ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.1002b3f0
mov dword [ebp - 4], ebx
cmp dword [edi + 0x128], ebx
je 0x1002add0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea ecx, [ebp - 0x40]
mov eax, esp
push ecx
push eax
call fcn.1003a468
mov ecx, dword [edi + 0x128]
add esp, 8
push ebx
call fcn.10028bc0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002ada3
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
cmp dword [ecx + 0x14], 8
jb 0x1002ad54
mov eax, dword [ecx]
jmp 0x1002ad56
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.10025950
call fcn.10038dc2
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
cmp eax, 8
jb 0x1002ad8a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x1002aee1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x1002adbc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10025830
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x1002aee1
push 0x1869f
push 0x2710
call fcn.10039617
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x10176588
call fcn.1002b2c0
push 5
push str.171be
lea ecx, [ebp - 0x40]
call fcn.1002b2c0
push 1
push 0x10176594
lea ecx, [ebp - 0x40]
call fcn.1002b2c0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10039169
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1002b1c0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1002ae56
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10029f40
lea ecx, [ebp - 0xa0]
call fcn.100382f6
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100384dd
lea ecx, [ebp - 0xa0]
call fcn.100388cd
mov esi, eax
mov ecx, 1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmove eax, ecx
mov dword [ebp - 0x5c], eax
inc eax
push eax
call fcn.10033571
mov ecx, dword [ebp - 0x5c]
mov ebx, eax
inc ecx
push ecx
push 0
push ebx
call fcn.1004cec0
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x1002aed2
nop dword [eax + eax]
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + ebx], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x1002aec0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.10038338
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 ebx
call fcn.1003ac90
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
jne 0x1002af26
push 0x8d
call fcn.1003b29e
add esp, 4
test ebx, ebx
je 0x1002af3f
push ebx
call fcn.1003357a
add esp, 4
jmp 0x1002af3f
push eax
mov ecx, edi
call fcn.1002a940
test ebx, ebx
je 0x1002af3b
push ebx
call fcn.1003357a
add esp, 4
mov byte [edi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1002af89
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x1002af80
test cl, 0x1f
je 0x1002af5c
call fcn.1004fc61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1002af68
call fcn.1004fc61
sub ecx, eax
cmp ecx, 4
jae 0x1002af74
call fcn.1004fc61
cmp ecx, 0x23
jbe 0x1002af7e
call fcn.1004fc61
mov ecx, eax
push ecx
call fcn.1003355e
add esp, 4
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.1003357f
mov esp, ebp
pop ebp
ret