Function at 0x1001e340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [ebp - 8], 0
call esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001e988
push ebx
call fcn.10018b20
test eax, eax
jne 0x1001e988
push edi
xor edi, edi
push edi
call esi
push ebx
call fcn.10018b20
test eax, eax
jne 0x1001e975
push ebx
call fcn.1001cb30
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x1001e5f1
call fcn.1001e1d0
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x1001e5df
push esi
call fcn.10018b20
test eax, eax
je 0x1001e531
mov dword [ebp - 0x14], 0x100a2e30
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x100a2dc0
nop word [eax + eax]
mov ecx, dword [ebx]
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001e3d7
sub esi, edx
sar esi, 1
push esi
push ecx
push dword [ebp - 4]
call fcn.1007b09b
add esp, 0xc
test eax, eax
je 0x1001e406
add ebx, 4
lea eax, [ebp - 0xc]
cmp ebx, eax
jb 0x1001e3d0
jmp 0x1001e4df
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea esi, [eax + esi*2]
mov dword [ebp - 0x10], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e415
sub ecx, edx
sar ecx, 1
test esi, esi
jne 0x1001e450
lea esi, [ecx + 1]
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001e4dd
push dword [ebp + 8]
push esi
push edi
call fcn.1001c240
jmp 0x1001e4d1
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001e455
sub edx, edi
sar edx, 1
test ecx, ecx
je 0x1001e484
mov eax, dword [ebp + 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1001e484
test edx, edx
je 0x1001e484
cmp word [esi], 0x5c
je 0x1001e484
mov eax, 1
jmp 0x1001e486
xor eax, eax
mov dword [ebp - 0xc], eax
add eax, ecx
add eax, edx
lea esi, [eax*2 + 2]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001e4df
push dword [ebp + 8]
push esi
push edi
call fcn.1001c0d0
test eax, eax
js 0x1001e4d5
cmp dword [ebp - 0xc], 0
je 0x1001e4c7
push 0x100a2890
push esi
push edi
call fcn.1001c020
test eax, eax
js 0x1001e4d5
push dword [ebp - 0x10]
push esi
push edi
call fcn.1001c020
test eax, eax
jns 0x1001e4df
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call eax
xor edi, edi
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
cmp ebx, eax
jne 0x1001e5d6
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001e528
cmp eax, 0x2f
je 0x1001e528
push eax
call fcn.1007a780
add esp, 4
test eax, eax
je 0x1001e5d6
cmp word [esi + 2], 0x3a
jne 0x1001e5d6
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x1001e528
cmp eax, 0x2f
jne 0x1001e5d6
mov edi, esi
xor esi, esi
jmp 0x1001e5d6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e536
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001e550
sub edx, edi
sar edx, 1
test ecx, ecx
je 0x1001e57c
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x1001e57c
test edx, edx
je 0x1001e57c
cmp word [esi], 0x5c
je 0x1001e57c
mov ebx, 1
jmp 0x1001e57e
xor ebx, ebx
lea eax, [ebx + edx]
add eax, ecx
lea esi, [eax*2 + 2]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001e5d3
push dword [ebp + 8]
push esi
push edi
call fcn.1001c0d0
test eax, eax
js 0x1001e5c9
test ebx, ebx
je 0x1001e5bb
push 0x100a2890
push esi
push edi
call fcn.1001c020
test eax, eax
js 0x1001e5c9
push dword [ebp - 4]
push esi
push edi
call fcn.1001c020
test eax, eax
jns 0x1001e5d3
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call eax
xor edi, edi
mov esi, dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001e913
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1001e784
mov esi, 0x100a2b10
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001e610
sub esi, ecx
lea ecx, [ebx + 2]
sar esi, 1
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001e622
push dword [ebp + 8]
sub ebx, ecx
sar ebx, 1
call fcn.10019840
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e640
sub ecx, edx
sar ecx, 1
sub ecx, edi
je 0x1001e742
sub ecx, 1
je 0x1001e6d1
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e664
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
add eax, eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call eax
mov esi, eax
test esi, esi
je 0x1001e784
push ebx
push dword [ebp + 8]
push esi
call fcn.1001c240
test eax, eax
jns 0x1001e6a6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
test esi, esi
je 0x1001e784
push 0x37e4
call fcn.1001b910
test eax, eax
je 0x1001e804
push 0
call fcn.1001d420
mov ebx, eax
mov dword [ebp + 8], ebx
jmp 0x1001e80e
lea ecx, [ebx - 1]
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x1001e6a4
mov ebx, dword [ebp + 8]
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001e6e1
sub ebx, edx
sar ebx, 1
cmp ecx, ebx
cmovb ebx, ecx
inc ebx
lea eax, [ebx + ebx]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call eax
mov esi, eax
test esi, esi
je 0x1001e784
test ebx, ebx
je 0x1001e69d
cmp ebx, 0x7fffffff
jbe 0x1001e71c
xor eax, eax
mov word [esi], ax
jmp 0x1001e69d
mov eax, dword [ebp - 0x10]
cmp eax, 0x7ffffffe
jbe 0x1001e730
xor eax, eax
mov word [esi], ax
jmp 0x1001e69d
push eax
push dword [ebp + 8]
push 0
push ebx
push esi
call fcn.1001c2b0
jmp 0x1001e699
lea eax, [ebx + esi]
lea ebx, [eax*2 + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001e784
push dword [ebp + 8]
push ebx
push esi
call fcn.1001c0d0
test eax, eax
js 0x1001e77d
push 0x100a2b10
push ebx
push esi
call fcn.1001c020
test eax, eax
jns 0x1001e6ae
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001e798
push 0x7e
call ebx
test edi, edi
je 0x1001e97c
push 0
call ebx
movzx eax, word [edi]
cmp eax, 0x5c
je 0x1001e922
cmp eax, 0x2f
je 0x1001e922
push eax
call fcn.1007a780
add esp, 4
test eax, eax
je 0x1001e7e3
cmp word [edi + 2], 0x3a
jne 0x1001e7e3
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x1001e922
cmp eax, 0x2f
je 0x1001e922
push 0xa0
call ebx
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1001e1d0
mov ebx, eax
mov dword [ebp + 8], eax
test ebx, ebx
je 0x1001e906
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e820
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001e834
sub edx, edi
sar edx, 1
test ecx, ecx
je 0x1001e860
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x1001e860
test edx, edx
je 0x1001e860
cmp word [esi], 0x5c
je 0x1001e860
mov eax, 1
jmp 0x1001e862
xor eax, eax
mov dword [ebp - 0xc], eax
add eax, edx
add eax, ecx
lea ebx, [eax*2 + 2]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001e8f5
push dword [ebp + 8]
push ebx
push edi
call fcn.1001c0d0
test eax, eax
js 0x1001e8ec
cmp dword [ebp - 0xc], 0
je 0x1001e8a3
push 0x100a2890
push ebx
push edi
call fcn.1001c020
test eax, eax
js 0x1001e8ec
push esi
push ebx
push edi
call fcn.1001c020
test eax, eax
js 0x1001e8ec
test edi, edi
je 0x1001e8f5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001e8c3
test al, 0x50
je 0x1001e8f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, 2
jne 0x1001e8d8
push 0
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001e90c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001e90c
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1001e78a
push 0
jmp 0x1001e796
push edi
call fcn.1001b6d0
test eax, eax
jne 0x1001e94d
push 0xa1
call ebx
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
and eax, 0xffffe8f7
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa0
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa0
call esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8