Function at 0x10027020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101026c1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x1002706a
cmp dword [ebp + 0xc], 0
je 0x1002706a
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x10027071
xor eax, eax
jmp 0x100273ae
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0
lea ecx, [ebp - 0x230]
call fcn.10029080
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0xffffffff
cmp dword [ebp + 0x18], 0
je 0x100270cb
push 0x20119
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x230]
call fcn.10029d40
mov dword [ebp - 0x224], eax
jmp 0x100270e9
push 0x20219
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x230]
call fcn.10029d40
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10027119
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10029500
mov eax, dword [ebp - 0x234]
jmp 0x100273ae
mov dword [ebp - 0x238], 0x104
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x230]
call fcn.10029de0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10027176
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10029500
mov eax, dword [ebp - 0x23c]
jmp 0x100273ae
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10006670
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.10015780
lea ecx, [ebp - 0x21c]
call fcn.10015840
lea ecx, [ebp - 0x21c]
call fcn.10008ae0
movzx ecx, al
test ecx, ecx
je 0x100271ea
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10006cb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10029500
mov eax, dword [ebp - 0x240]
jmp 0x100273ae
push 0x10110d58
push 1
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x21c]
call fcn.10008cf0
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
push eax
call fcn.1001acd0
add esp, 8
mov byte [ebp - 0x21d], al
lea ecx, [ebp - 0x248]
call fcn.10006cb0
movzx ecx, byte [ebp - 0x21d]
test ecx, ecx
je 0x1002728c
lea ecx, [ebp - 0x21c]
call fcn.100086a0
sub eax, 1
push eax
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x21c]
call fcn.1001b310
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1000b4d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.10006cb0
push 0x10110d5c
push 1
lea edx, [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x21c]
call fcn.1001b310
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
push eax
call fcn.1001acd0
add esp, 8
mov byte [ebp - 0x21e], al
lea ecx, [ebp - 0x25c]
call fcn.10006cb0
movzx ecx, byte [ebp - 0x21e]
test ecx, ecx
je 0x1002732e
lea ecx, [ebp - 0x21c]
call fcn.100086a0
sub eax, 1
push eax
lea edx, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x21c]
call fcn.10008cf0
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1000b4d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.10006cb0
cmp dword [ebp + 0x14], 0
je 0x1002736f
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx + eax]
test edx, edx
je 0x1002736f
mov eax, dword [ebp + 0x14]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.1001b110
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.1001b240
lea ecx, [ebp - 0x21c]
call fcn.10007150
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10006cb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10029500
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret