Function at 0x53a8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [0x7da170]
cmp eax, edx
jae 0x53a8e6
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
movsx eax, byte [edx + eax + 4]
and eax, 1
jne 0x53a8f9
call fcn.005352c0
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x53ac5b
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x53a926
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
movsx eax, byte [edx + eax + 4]
and eax, 2
je 0x53a92d
xor eax, eax
jmp 0x53ac5b
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
add eax, edx
movsx edx, byte [eax + 4]
and edx, 0x48
je 0x53a996
movsx eax, byte [eax + 5]
cmp eax, 0xa
je 0x53a996
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, ebx
and edx, 0x1f
imul edx, edx, 0x24
mov ecx, ebx
sar ecx, 5
mov ecx, dword [ecx*4 + 0x7da174]
mov dl, byte [ecx + edx + 5]
mov byte [eax], dl
inc edi
sub dword [ebp + 0x10], 1
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
mov byte [edx + eax + 5], 0xa
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
mov eax, dword [edx + eax]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53aa08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp eax, 5
jne 0x53a9e7
call fcn.005352c0
mov dword [eax], 9
or eax, 0xffffffff
jmp 0x53ac5b
mov eax, dword [ebp - 0x10]
cmp eax, 0x6d
jne 0x53a9f6
xor eax, eax
jmp 0x53ac5b
mov eax, dword [ebp - 0x10]
push eax
call fcn.00535140
pop ecx
or eax, 0xffffffff
jmp 0x53ac5b
mov eax, dword [ebp - 4]
add edi, eax
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
movsx eax, byte [edx + eax + 4]
and eax, 0x80
je 0x53ac59
cmp dword [ebp - 4], 0
je 0x53aa64
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
cmp eax, 0xa
jne 0x53aa64
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
lea eax, [edx + eax + 4]
movsx edx, byte [eax]
or edx, 4
mov byte [eax], dl
jmp 0x53aa84
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
lea eax, [edx + eax + 4]
movsx edx, byte [eax]
and edx, 0xfffffffb
mov byte [eax], dl
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov esi, eax
jmp 0x53ac40
movsx eax, byte [esi]
cmp eax, 0x1a
jne 0x53aae0
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
movsx eax, byte [edx + eax + 4]
and eax, 0x40
jne 0x53ac4f
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
lea eax, [edx + eax + 4]
movsx edx, byte [eax]
or edx, 2
mov byte [eax], dl
jmp 0x53ac4f
movsx eax, byte [esi]
cmp eax, 0xd
je 0x53aafd
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov edx, esi
inc esi
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x53ac40
mov eax, esi
mov edx, dword [ebp + 0xc]
lea edx, [edx + edi - 1]
cmp eax, edx
jae 0x53ab3c
movsx eax, byte [esi + 1]
cmp eax, 0xa
jne 0x53ab27
lea esi, [esi + 2]
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xa
jmp 0x53ac40
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov edx, esi
inc esi
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x53ac40
inc esi
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x15]
push eax
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
mov eax, dword [edx + eax]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53ab7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x53ab88
cmp dword [ebp - 4], 0
jne 0x53ab99
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xd
jmp 0x53ac40
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
movsx eax, byte [edx + eax + 4]
and eax, 0x48
je 0x53abfa
movsx eax, byte [ebp - 0x15]
cmp eax, 0xa
jne 0x53abd1
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xa
jmp 0x53ac40
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xd
mov eax, ebx
and eax, 0x1f
imul eax, eax, 0x24
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x7da174]
mov cl, byte [ebp - 0x15]
mov byte [edx + eax + 5], cl
jmp 0x53ac40
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x53ac1b
movsx eax, byte [ebp - 0x15]
cmp eax, 0xa
jne 0x53ac1b
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xa
jmp 0x53ac40
push 1
push 0xffffffffffffffff
push ebx
call fcn.00539380
add esp, 0xc
mov dword [ebp - 0x14], eax
movsx eax, byte [ebp - 0x15]
cmp eax, 0xa
je 0x53ac40
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov byte [eax], 0xd
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, edi
cmp eax, edx
jb 0x53aa91
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
sub eax, edx
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret