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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100b7464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x240], 0
cmp dword [ebp + 8], esi
jne 0x1001d544
push 0x42ea
call fcn.1001b910
test eax, eax
je 0x1001d503
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.10055380
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.10019ba0
xor eax, eax
cmp ax, word [ebp - 0x210]
je 0x1001d503
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001d503
test al, 0x10
je 0x1001d503
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d4b4
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001d544
lea eax, [ebp - 0x210]
push eax
push edi
push esi
call fcn.1001c240
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053108
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x228], xmm0
movlpd qword [ebp - 0x220], xmm0
movlpd qword [ebp - 0x218], xmm0
mov dword [ebp - 0x22c], 0x1c
call ebx
push 0x1770
call fcn.1001b910
test eax, eax
jne 0x1001d559
push 0x78
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053108
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x100b7f40]
test eax, eax
jne 0x1001d576
push eax
push 0x100a2ea0
call fcn.1001bb00
mov dword [0x100b7f40], eax
test eax, eax
je 0x1001d544
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x100b7f54], esi
jne 0x1001d59a
push 0x100a2f10
push eax
call ebx
mov dword [0x100b7f54], eax
test eax, eax
je 0x1001d544
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f5c], esi
jne 0x1001d5b8
push 0x100a2f30
push eax
call ebx
mov dword [0x100b7f5c], eax
test eax, eax
je 0x1001d544
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f58], esi
jne 0x1001d5d5
push 0x100a2ef0
push eax
call ebx
mov dword [0x100b7f58], eax
test eax, eax
je 0x1001d544
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
call fcn.100198a0
test eax, eax
je 0x1001d544
push 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], esi
push eax
push 0
push 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
push 0x100a9a68
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x234]
call dword [0x100b7f54]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x1001d72f
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x1001d72f
push 0
push 0
push dword [ebp - 0x230]
lea eax, [ebp - 0x23c]
push ebx
push eax
push 0x100a9a68
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x234]
call dword [0x100b7f54]
test eax, eax
je 0x1001d72f
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
push 0
push ebx
call dword [0x100b7f5c]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x1001d72f
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
je 0x1001d72f
push 0
push dword [ebp - 0x230]
push esi
push 0
push 0
push ebx
call dword [0x100b7f5c]
test eax, eax
je 0x1001d72f
push 0x5c
push esi
call fcn.10055aa4
add esp, 8
lea ebx, [eax + 2]
test eax, eax
jne 0x1001d6ed
mov ebx, esi
sub ebx, esi
sar ebx, 1
sub ebx, 1
js 0x1001d72d
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001d700
sub esi, ecx
sar esi, 1
cmp ebx, esi
cmovb esi, ebx
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x1001d772
mov esi, dword [ebp - 0x238]
xor edi, edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x240]
call esi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1001d751
push eax
call dword [0x100b7f58]
test edi, edi
je 0x1001d75d
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053108
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x1001d7b0
cmp esi, 0x7fffffff
ja 0x1001d7ab
cmp ebx, 0x7ffffffe
ja 0x1001d7ab
push ebx
push dword [ebp - 0x238]
push 0
push esi
push edi
call fcn.1001c2b0
test eax, eax
jns 0x1001d7b9
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x238]
xor edi, edi
jmp 0x1001d72f
xor eax, eax
mov word [edi], ax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov esi, dword [ebp - 0x238]
jmp 0x1001d72f