Function at 0x10027b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bab3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x101df230]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
mov eax, dword [ebx]
or eax, dword [ebx + 4]
push 0
jne 0x10027bfc
call fcn.1005c7be
mov ecx, dword [ebx + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [ebx + 8]
shl ecx, 2
mov dword [ebx], eax
mov dword [ebx + 4], edx
test ecx, ecx
jle 0x10027c09
push ecx
push 0
call fcn.1003fb5a
cdq
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
jmp 0x10027c09
call fcn.1005c7be
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.1003d807
test al, al
je 0x10027c27
pop edx
push ebx
pop esi
pop ebx
push edx
pop ecx
push esp
pop esp
push eax
push ebp
pop esp
pop ecx
pop eax
push ebp
pop esp
push esi
pop esp
pop esi
mov ebx, dword [ebp - 0x68]
call fcn.1003d91b
test al, al
je 0x10027c41
pop eax
push edi
pop esp
push edi
pop esi
pop edx
push esi
pop ebp
pop esp
push ebp
push esp
push ecx
push ecx
pop esp
pop esp
push eax
pop esi
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.100239a0
cmp dword [ebx + 0x128], 0
mov dword [ebp - 4], 0
je 0x10027d73
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
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.1004108a
mov ecx, dword [ebx + 0x128]
add esp, 8
push 0
call fcn.100253c0
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 0x10027d46
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x10027cf6
mov eax, dword [ecx]
jmp 0x10027cf8
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.10020280
call fcn.1003eaec
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x10027d2d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10020130
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x10027e82
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x10027d5f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10020130
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x10027e82
push 0x1869f
push 0x2710
call fcn.1003fb5a
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x1017f8fc
call fcn.10028110
push 5
push str.0ab49
lea ecx, [ebp - 0x40]
call fcn.10028110
push 1
push 0x1017f908
lea ecx, [ebp - 0x40]
call fcn.10028110
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003f2be
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10028010
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10027df9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10023bd0
lea ecx, [ebp - 0xa4]
call fcn.1003dd19
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1003dfab
lea ecx, [ebp - 0xa4]
call fcn.1003e2e4
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.10031bf4
mov ecx, dword [ebp - 0x5c]
mov edi, eax
inc ecx
mov dword [ebp - 0x60], edi
push ecx
push 0
push edi
call fcn.10054b20
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x10027e73
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + edi], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x10027e61
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.1003dd5b
call fcn.1003d84c
test al, al
je 0x10027ea9
pop ebx
pop edi
pop esp
push ebp
pop ebp
pop ebx
pop esi
pop edi
push esi
pop esp
pop ebx
pop edi
push edi
push edx
push esi
pop esp
pop edi
push edx
push ebp
push edi
push ecx
push eax
push esi
push edi
push ebx
push eax
push ebp
pop esi
push edx
push eax
call fcn.1003d807
test al, al
je 0x10027eca
push edx
push edi
push esi
push edx
pop ebp
push esp
push ebx
push ebp
pop esi
pop edi
pop esp
push eax
push ebp
pop ebx
push ecx
push ebx
pop esp
pop esp
pop esp
push ebp
pop esi
pop esi
push edi
push ebx
call fcn.1003d624
test al, al
je 0x10027eec
pop edi
push eax
pop eax
push ecx
pop ebp
push eax
push esp
push esp
push ecx
push edi
pop ecx
push esp
pop ebx
pop esp
pop ebp
pop edx
push ebx
pop ebp
push edi
pop ebx
pop esi
push esi
push esi
pop ebp
push eax
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
push ebx
call fcn.10041d00
mov eax, dword [ebp - 0x64]
add esp, 0x10
test eax, eax
jne 0x10027f34
push 0x8d
call fcn.10042518
add esp, 4
test ebx, ebx
je 0x10027f50
push ebx
call fcn.10031bfd
add esp, 4
jmp 0x10027f50
mov esi, dword [ebp - 0x68]
mov ecx, esi
push eax
call fcn.100277b0
test ebx, ebx
je 0x10027f4c
push ebx
call fcn.10031bfd
add esp, 4
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10027f9a
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x10027f91
test cl, 0x1f
je 0x10027f6d
call fcn.10058621
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10027f79
call fcn.10058621
sub ecx, eax
cmp ecx, 4
jae 0x10027f85
call fcn.10058621
cmp ecx, 0x23
jbe 0x10027f8f
call fcn.10058621
mov ecx, eax
push ecx
call fcn.1003187d
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.10031bc0
mov esp, ebp
pop ebp
ret