Function at 0x10027370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c0b3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x101df028]
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 esi, ecx
mov dword [ebp - 0x70], esi
mov eax, dword [esi]
or eax, dword [esi + 4]
push 0
jne 0x100273dc
call fcn.10059d4c
mov ecx, dword [esi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [esi + 8]
shl ecx, 2
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
jle 0x100273e9
push ecx
push 0
call fcn.1003f1af
cdq
add esp, 8
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x100273e9
call fcn.10059d4c
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.1003c757
test al, al
je 0x10027409
pop ebx
pop eax
pop ecx
pop ebp
push edi
push eax
push edx
pop esp
push ebx
push edi
push esp
pop edi
pop ecx
push esp
pop esp
push eax
push ebx
pop ebp
push ebx
pop edx
pop eax
push ecx
push esp
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, [esi + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10027c00
cmp dword [esi + 0x128], 0
mov dword [ebp - 4], 0
je 0x1002753b
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.10040938
mov ecx, dword [esi + 0x128]
add esp, 8
push 0
call fcn.100249c0
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 0x1002750e
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 0x100274be
mov eax, dword [ecx]
jmp 0x100274c0
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.10020060
call fcn.1003df62
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x100274f5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x10027651
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x10027527
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x10027651
push 0x1869f
push 0x2710
call fcn.1003f1af
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x1017f684
call fcn.10027ad0
push 5
push str.af614
lea ecx, [ebp - 0x40]
call fcn.10027ad0
push 1
push 0x1017f690
lea ecx, [ebp - 0x40]
call fcn.10027ad0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1003e7d5
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.100279d0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x100275c1
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.100262c0
lea ecx, [ebp - 0xa4]
call fcn.1003cee8
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.1003d1b3
lea ecx, [ebp - 0xa4]
call fcn.1003d59c
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.10032069
mov ecx, dword [ebp - 0x5c]
mov ebx, eax
inc ecx
mov dword [ebp - 0x60], ebx
push ecx
push 0
push ebx
call fcn.10056120
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x10027642
nop dword [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 0x10027630
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.1003cf2a
call fcn.1003c4ea
test al, al
je 0x10027674
pop esi
push edx
pop esp
pop ebx
pop esp
pop ebx
push ebp
push eax
push edx
pop edx
pop esi
pop ecx
pop ecx
pop edx
pop eax
push edi
pop ecx
push ecx
push ebx
push eax
push esp
push edi
push ebp
pop esp
pop esi
push ebp
call fcn.1003cb1d
test al, al
je 0x1002769a
push edx
push ecx
pop ecx
pop esp
push ecx
push ebx
push esp
pop esp
push esp
push edi
pop edx
push ebx
pop edi
push eax
pop edi
pop esp
pop eax
pop esi
push ecx
push ecx
pop esp
pop edi
pop ebp
push edx
pop esp
push ecx
push ebx
push ebp
pop edx
call fcn.1003c688
test al, al
je 0x100276bb
push ebp
push esp
push ebx
push edi
push ecx
pop ecx
pop ebp
pop edx
push ebp
push edi
push edx
pop edi
pop esp
push edx
pop ecx
pop eax
push ebp
pop esp
pop ebx
pop ebx
pop esi
pop esi
push eax
pop esi
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x6c], 0
push ebx
call fcn.1004168f
mov eax, dword [ebp - 0x64]
add esp, 0x10
test eax, eax
jne 0x10027703
push 0x8d
call fcn.10041e78
add esp, 4
test ebx, ebx
je 0x1002771f
push ebx
call fcn.10032072
add esp, 4
jmp 0x1002771f
mov esi, dword [ebp - 0x70]
mov ecx, esi
push eax
call fcn.10026ef0
test ebx, ebx
je 0x1002771b
push ebx
call fcn.10032072
add esp, 4
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10027769
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x10027760
test cl, 0x1f
je 0x1002773c
call fcn.10058eb1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10027748
call fcn.10058eb1
sub ecx, eax
cmp ecx, 4
jae 0x10027754
call fcn.10058eb1
cmp ecx, 0x23
jbe 0x1002775e
call fcn.10058eb1
mov ecx, eax
push ecx
call fcn.10032022
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.10032035
mov esp, ebp
pop ebp
ret