Function at 0x100aed70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x24], 0
push edi
push 0
mov ebx, ecx
mov dword [ebp - 0x2c], 0
lea eax, [esi + 0x80]
mov dword [ebp - 0x28], ebx
push 0
push ebx
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
test eax, eax
je 0x100aedd9
mov edi, 1
jmp 0x100af227
push 0x200
push 0x100edc68
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 0x200
je 0x100aedfe
mov edi, 2
jmp 0x100af227
mov ecx, 0x100edc68
mov edx, 0x100c4e3c
mov edi, 0x1c
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100af222
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100aee10
cmp word [0x100edc88], 1
je 0x100aee39
mov edi, 4
jmp 0x100af227
movzx edx, word [0x100edc92]
xor eax, eax
mov word [0x100edc92], ax
xorps xmm2, xmm2
mov eax, 0x100edc68
xorps xmm3, xmm3
mov ecx, 0x20
nop dword [eax + eax]
movq xmm1, qword [eax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 0x10]
paddw xmm2, xmm1
movq xmm1, qword [eax - 8]
punpcklbw xmm1, xmm0
paddw xmm3, xmm1
sub ecx, 1
jne 0x100aee60
paddw xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
paddw xmm2, xmm0
movd eax, xmm2
movzx eax, ax
cmp ax, dx
je 0x100aeec0
lea edi, [ecx + 5]
jmp 0x100af227
mov ecx, dword [esi + 0x14]
mov edx, 1
movzx eax, word [0x100ede08]
shl edx, cl
test eax, edx
jne 0x100aeedf
mov edi, 6
jmp 0x100af227
movzx eax, word [0x100edde2]
mov dword [esi + 0x1c], eax
movsx eax, word [0x100edde4]
mov dword [esi + 0x20], eax
movsx eax, word [0x100edde6]
mov dword [esi + 0x24], eax
movsx eax, word [0x100edde8]
mov dword [esi + 0x28], eax
movsx eax, word [0x100eddea]
mov dword [esi + 0x2c], eax
movsx eax, word [0x100eddec]
mov dword [esi + 0x30], eax
movsx eax, word [0x100eddee]
mov dword [esi + 0x34], eax
movsx eax, word [0x100eddf0]
mov dword [esi + 0x38], eax
movsx eax, word [0x100eddf2]
mov dword [esi + 0x3c], eax
movzx eax, word [0x100ede0e]
mov dword [esi + 0x40], eax
movzx eax, word [0x100ede10]
push 0x20
push 0x100edd74
mov dword [esi + 0x44], eax
lea eax, [esi + 0x60]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov cl, byte [0x100eddbf]
add esp, 0x10
movzx edx, byte [0x100eddbe]
test cl, cl
movzx eax, cl
cmovne edx, eax
mov byte [esi + 0x13], dl
cmp word [0x100ede0c], 0
jne 0x100aef8f
mov edi, 7
jmp 0x100af227
push 0
push dword [0x100ede12]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
xor eax, eax
add esp, 0xc
cmp ax, word [0x100ede0c]
jae 0x100aefe4
push 4
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 4
jne 0x100aefda
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x100af201
mov edi, 8
jmp 0x100af227
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ebx, [esi + 0x100]
mov dword [esi + 0x50], eax
movzx edx, word [0x100ede10]
mov eax, dword [esi + 0x54]
shl edx, 2
mov dword [ebp - 0x20], eax
lea ecx, [eax + edx]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x54], ecx
cmp ecx, ebx
jbe 0x100af022
push edx
mov dword [esi + 0x54], eax
call edi
mov ecx, dword [esi + 0x54]
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x4c], eax
movzx edx, word [0x100ede10]
shl edx, 4
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x54], eax
cmp eax, ebx
jbe 0x100af050
push edx
mov dword [esi + 0x54], ecx
call edi
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x5c], ecx
lea edx, [esi + 0x100]
movzx ecx, word [0x100ede0e]
shl ecx, 2
lea ebx, [eax + ecx]
mov dword [esi + 0x54], ebx
cmp ebx, edx
jbe 0x100af082
push ecx
mov dword [esi + 0x54], eax
call edi
mov ebx, dword [esi + 0x54]
lea edx, [esi + 0x100]
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x48], eax
movzx eax, word [0x100ede0e]
shl eax, 4
lea ecx, [ebx + eax]
mov dword [esi + 0x54], ecx
cmp ecx, edx
jbe 0x100af0a4
push eax
mov dword [esi + 0x54], ebx
call edi
add esp, 4
mov ebx, eax
mov dword [esi + 0x58], ebx
mov cx, word [0x100ede10]
test cx, cx
je 0x100af0bd
cmp dword [esi + 0x4c], 0
je 0x100af21b
cmp dword [esi + 0x5c], 0
je 0x100af21b
mov ax, word [0x100ede0e]
test ax, ax
je 0x100af0dc
cmp dword [esi + 0x48], 0
je 0x100af21b
test ebx, ebx
je 0x100af21b
mov edi, dword [0x100ede16]
movzx ecx, cx
movzx eax, ax
add ecx, eax
je 0x100af201
mov eax, dword [ebp - 0x18]
add ebx, 4
add eax, 4
mov dword [ebp - 0x18], eax
push 0
push edi
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
cmp eax, edi
jne 0x100af214
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 0xe
jne 0x100af214
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xa], edi
cmp word [ebp - 0xe], 0
mov dword [ebp - 0x30], eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x14], edi
jne 0x100af1a2
mov ecx, dword [ebp - 0x18]
mov word [ecx - 4], ax
movzx eax, word [ebp - 0xe]
mov word [ecx - 2], ax
movzx eax, word [ebp - 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 0xa]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
add ecx, 0x10
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
add ecx, 4
mov ax, word [0x100ede10]
mov dx, word [0x100ede0e]
mov dword [ebp - 0x20], ecx
mov ecx, 0xffff
add ax, cx
mov word [0x100ede10], ax
jmp 0x100af1f0
mov ecx, dword [ebp - 0x1c]
mov word [ebx - 4], ax
movzx eax, word [ebp - 0xe]
mov word [ebx - 2], ax
movzx eax, word [ebp - 0xc]
mov word [ebx], ax
mov eax, dword [ebp - 0xa]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
add ebx, 0x10
movzx eax, word [ebp - 0x10]
mov dword [ecx], eax
mov eax, 0xffff
mov dx, word [0x100ede0e]
add ecx, 4
add dx, ax
mov dword [ebp - 0x1c], ecx
mov ax, word [0x100ede10]
mov word [0x100ede0e], dx
add edi, dword [ebp - 0x30]
movzx ecx, ax
movzx eax, dx
add ecx, eax
jne 0x100af104
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov edi, 0xa
jmp 0x100af227
mov edi, 9
jmp 0x100af227
mov edi, 3
mov eax, dword [ebp - 0x2c]
mov ecx, esi
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], 0
call fcn.100af2b0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret