Function at 0x1c230ee
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.01c23089
mov esi, eax
cmp byte [eax + 0xb], 0
js 0x1c2311e
jne 0x1c2312a
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x1c232a1
cmp dword [esi + 4], 0
je 0x1c23293
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x1cb93d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1c23244
mov esi, eax
xor eax, eax
dec eax
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], eax
xor eax, eax
lea ebx, [ebp - 0x14]
mov dword [ebx], eax
push eax
push ebx
push 8
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx]
test eax, eax
je 0x1c23270
cmp ecx, 8
jne 0x1c23270
mov edi, 8
cmp dword [ebp - 0x20], 1
jne 0x1c2327e
mov eax, dword [ebp - 0x1c]
mov dword [0x1cefcc0], eax
test eax, eax
je 0x1c2334e
mov edi, 9
cmp eax, 0x5d1745d
ja 0x1c2327e
imul edi, eax, 0x2c
push edi
call fcn.01c8ff03
add esp, 4
mov dword [0x1cefcc4], eax
push 0
push ebx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [0x1cefcc4]
test eax, eax
je 0x1c23358
cmp dword [ebp - 0x14], edi
jne 0x1c23358
mov edx, dword [0x1cefcc0]
imul eax, edx, 0x2c
add eax, ebx
xor edi, edi
mov ecx, ebx
test edx, edx
je 0x1c23381
cmp edx, 1
je 0x1c2327e
lea edx, [ebx + 0x2c]
mov dword [ebp - 0x28], ebx
mov ecx, ebx
mov dword [ebp - 0x24], eax
mov ebx, ecx
mov ecx, edx
add ebx, 0x14
mov al, byte [edx - 0x2c]
mov ah, byte [edx]
cmp ah, al
jb 0x1c2337b
cmp al, ah
jb 0x1c23238
lea eax, [edx - 0x2b]
inc edx
cmp eax, ebx
jne 0x1c2321f
lea edx, [ecx + 0x2c]
mov eax, dword [ebp - 0x24]
cmp edx, eax
jne 0x1c23218
jmp 0x1c2327e
mov edi, 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
cmp ecx, 2
jb 0x1c23333
mov edi, eax
cmp eax, 5
je 0x1c2333a
mov edi, 6
jmp 0x1c2333a
xor eax, eax
test ecx, ecx
setne al
lea edi, [eax*4 + 3]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 4
jbe 0x1c23333
jmp 0x1c2333a
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x20]
push edi
call fcn.01c42bbd
add esp, 4
mov ecx, edi
push str.ThirdParty
call fcn.01c3f7b8
cmp byte [eax + 0xb], 0
jns 0x1c232c8
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
push 2
call fcn.01c411f4
add esp, 0x10
mov ebx, eax
cmp byte [ebp - 0x15], 0
jns 0x1c232ec
push dword [ebp - 0x20]
call fcn.01c8fed0
add esp, 4
test bl, bl
je 0x1c23330
push esi
push str.BlFilePath
push dword [ebp - 0x14]
call fcn.01c422ac
add esp, 0xc
mov ebx, eax
push dword [ebp - 0x14]
call fcn.01c41ff6
add esp, 4
test bl, bl
je 0x1c23330
movzx eax, byte [esi + 0xb]
mov ecx, eax
test al, al
jns 0x1c2331f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1c23330
test al, al
jns 0x1c2312a
jmp 0x1c23128
xor edi, edi
inc edi
mov byte [0x1cefcc8], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 4
jmp 0x1c2327e
test ebx, ebx
je 0x1c23365
push ebx
call fcn.01c8ff0c
add esp, 4
xor eax, eax
mov dword [0x1cefcc4], eax
mov dword [0x1cefcc0], eax
mov edi, 0xa
jmp 0x1c2327e
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
je 0x1c2327e
test ebx, ebx
je 0x1c23396
push ebx
call fcn.01c8ff0c
add esp, 4
xor eax, eax
mov dword [0x1cefcc4], eax
mov dword [0x1cefcc0], eax
mov edi, 0xb
jmp 0x1c2327e