Function at 0x1004f1b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171e80
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x101c6270]
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 ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x29c], ecx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.100041a0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x1004f276
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
mov ecx, dword [ebp - 0x14]
je 0x1004f26f
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
mov ecx, dword [ebp - 0x14]
je 0x1004f26f
cmp ecx, 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x1004f276
mov edx, 0x101a5634
jmp 0x1004f27b
mov edx, 0x1017f140
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x294], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f286
sub ecx, dword [ebp - 0x294]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000b3c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x1004f30f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], 0
call edi
cmp eax, 2
je 0x1004f2e9
call edi
cmp eax, 0x12
je 0x1004f2e9
call edi
mov edi, eax
jmp 0x1004f2eb
xor edi, edi
call fcn.10127920
mov dword [esi], edi
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x1004f435
inc ecx
push ecx
jmp 0x1004f42a
lea edx, [ebp - 0x264]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004f320
sub edx, ecx
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x29c]
sar edx, 1
push edx
push eax
call fcn.10004470
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x1004f360
mov dword [edi], 0
mov dword [ebx], 0
jmp 0x1004f40b
test al, 0x10
je 0x1004f372
mov dword [edi], 3
mov dword [ebx], 3
jmp 0x1004f37e
mov dword [edi], 2
mov dword [ebx], 2
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f3a0
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10004470
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.10050100
add esp, 8
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x1004f3f1
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10004630
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], 7
mov dword [ebx + 4], eax
mov dword [esi], 0
call fcn.10127920
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 4
cmp eax, 8
jb 0x1004f435
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10004630
mov eax, esi
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.1010f54f
mov esp, ebp
pop ebp
ret