Function at 0x27596ba0
Capabilities:
Read file on windows

Disassembly:
inc esi
xor eax, eax
lea ebx, [esi*4]
neg ebx
lea ecx, [esi + esi]
add ebx, edx
neg ecx
add ecx, dword [esp + 0xc]
movzx edi, word [ebx]
mov word [ebx + 4], ax
lea eax, [ecx + 1]
cmp edi, 0x5c
je 0x27596bb3
xor eax, eax
mov word [ebx + 2], ax
mov eax, ecx
movzx ecx, word [ebx - 2]
cmp ecx, 0x5c
jne 0x27596b7c
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp byte [ecx], 0
je 0x27596be4
xor edx, edx
lea eax, [ebx + eax*2]
inc edx
movsx esi, byte [ecx + edx*2 - 2]
mov word [eax + edx*4 - 4], si
movsx esi, byte [ecx + edx*2 - 1]
test esi, esi
je 0x27596be4
mov word [eax + edx*4 - 2], si
cmp byte [ecx + edx*2], 0
jne 0x27596bc5
xor eax, eax
mov edx, 1
push eax
push 0x80
push 3
push eax
push edx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x27596e04
mov eax, dword [0x275bacf0]
push eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
call eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [0x275bace8]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov ecx, ebx
mov edx, dword [0x275bace8]
call fcn.27596e23
xor eax, eax
lea edx, [esp + 0x1c]
mov dword [edx], eax
push eax
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x27596e04
mov edx, dword [0x275bacc8]
mov eax, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x18], eax
lea eax, [ebx + edx]
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
jbe 0x27596d00
cmp edi, 4
jb 0x27596e0e
lea ecx, [ebx + edx + 8]
and ecx, 0xf
je 0x27596cca
test cl, 3
jne 0x27596e0e
neg ecx
add ecx, 0x10
shr ecx, 2
lea edx, [ecx + 4]
cmp edi, edx
jb 0x27596e0e
mov edx, edi
sub edx, ecx
and edx, 3
neg edx
add edx, edi
test ecx, ecx
je 0x27596cd3
xor ebx, ebx
add dword [eax + ebx*4 + 8], esi
inc ebx
cmp ebx, ecx
jb 0x27596cbf
jmp 0x27596cd3
mov edx, edi
and edx, 3
neg edx
add edx, edi
movd xmm0, esi
pshufd xmm0, xmm0, 0
movdqu xmm1, xmmword [eax + ecx*4 + 8]
paddd xmm1, xmm0
movdqu xmmword [eax + ecx*4 + 8], xmm1
add ecx, 4
cmp ecx, edx
jb 0x27596cdc
cmp edx, edi
jae 0x27596d00
add dword [eax + edx*4 + 8], esi
inc edx
cmp edx, edi
jb 0x27596cf7
mov edx, dword [0x275baccc]
lea edi, [eax + edx]
lea eax, [edx + eax + 1]
push eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x27596e04
movsx eax, byte [edi]
lea edx, [edi + eax + 1]
push edx
push dword [esp + 4]
lea esi, [edi + eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x27596e04
movsx edx, byte [esi]
lea ecx, [esi + edx + 1]
lea eax, [esi + edx]
mov dword [esp + 4], eax
push ecx
call ebx
test eax, eax
je 0x27596e04
mov ebx, dword [esp + 4]
lea edx, [esp + 0xc]
movsx esi, byte [ebx]
mov dword [esp], esi
lea ecx, [ebx + esi]
mov dword [edx + 4], ecx
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x2c]
add ecx, eax
mov dword [edx + 8], ecx
mov dword [edx], 0
push edx
push 0x40
push esi
push ecx
call edi
mov ecx, dword [esp]
mov eax, dword [esp + 4]
push esi
lea edx, [eax + ecx + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.27596e73
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push dword [esp + 0x20]
call edi
mov eax, dword [0x275bacd8]
xor edx, edx
cmp byte [eax], 0
je 0x27596ddd
mov eax, dword [esp + 0x18]
mov ecx, dword [0x275bacd8]
movsx edi, byte [ecx + edx]
mov word [eax + edx*2], di
inc edx
mov ecx, dword [0x275bacd8]
cmp byte [ecx + edx], 0
jne 0x27596dc2
mov ecx, dword [esp + 0x18]
xor eax, eax
add ebx, dword [esp + 0x14]
lea edi, [esp]
mov word [ecx + edx*2], ax
mov edx, dword [edi + 0x10]
mov dword [edi + 4], ecx
mov byte [edi + 8], 1
lea esi, [edx + esi + 0xc]
mov dword [edi], esi
push edi
call ebx
add esp, 4
add esp, 0x24
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
jmp 0x27596cf3