Function at 0x4a9b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [eax], 0
push esi
mov dword [ecx], 0
call fcn.00451ffc
lea ebx, [eax + eax + 2]
mov dword [esp + 0x3c], eax
push ebx
call fcn.005acc0c
mov ebp, eax
push esi
push ebp
mov dword [esp + 0x28], ebp
call fcn.00451fd7
push ebp
call fcn.00452aac
push ebx
call fcn.005acc0c
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x3c], ebx
call fcn.00451fd7
push ebx
call fcn.00453927
mov ebp, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x24
push 1
push 0
push 0
push ebp
call edi
cmp eax, 0xffffffff
jne 0x4a9bae
or ebx, eax
jmp 0x4a9bb0
mov ebx, eax
push 2
push 0
push 0
push ebp
call edi
cmp eax, 0xffffffff
jne 0x4a9bc2
or esi, eax
jmp 0x4a9bc4
mov esi, eax
push 0
push 0
push ebx
push ebp
call edi
mov edx, esi
mov ebp, 0xc800
and edx, 1
xor ebx, ebx
sub esi, edx
mov dword [esp + 0x10], ebp
cmp esi, ebp
mov dword [esp + 0x28], esi
jae 0x4a9bec
mov dword [esp + 0x10], esi
mov ebp, esi
lea eax, [ebp + 0xa]
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebp
call fcn.005acc0c
add esp, 4
mov dword [esp + 0x4c], eax
lea edi, [eax + 4]
test ebx, ebx
mov esi, edi
jbe 0x4a9c7e
mov eax, dword [esp + 0x30]
lea ecx, [ebx + ebp]
cmp ecx, eax
jbe 0x4a9c7b
lea eax, [ebp + ebp]
cmp eax, 0xa00000
mov dword [esp + 0x10], eax
jbe 0x4a9c3b
mov dword [esp + 0x10], 0xa00000
mov eax, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x30], eax
add eax, 0xa
push eax
call fcn.005acc0c
mov esi, dword [esp + 0x50]
lea ecx, [ebx + 0xa]
mov ebp, eax
mov edx, ecx
mov edi, ebp
mov eax, dword [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005acc35
mov dword [esp + 0x54], ebp
lea edi, [ebp + 4]
mov ebp, dword [esp + 0x18]
add esp, 8
lea esi, [edi + ebx]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
sub eax, ecx
sub eax, ebx
cmp ebp, eax
jbe 0x4a9c94
mov dword [esp + 0x10], eax
mov ebp, eax
push 0
add ecx, ebx
push 0
push ecx
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebp, ebp
je 0x4a9cd3
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x34]
push 0
push edx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a9cc7
or eax, 0xffffffff
jmp 0x4a9ccb
mov eax, dword [esp + 0x34]
cmp eax, ebp
jne 0x4a9f7b
test ebx, ebx
jne 0x4a9d12
cmp word [edi], 0xd
mov ecx, 0xa
je 0x4a9d17
cmp word [edi + 2], cx
je 0x4a9d17
cmp byte [edi], 0xff
jne 0x4a9d03
cmp byte [edi + 1], 0xfe
jne 0x4a9d03
mov eax, dword [esp + 0x4c]
mov word [eax + 2], 0xd
mov word [eax + 4], cx
jmp 0x4a9d17
mov eax, dword [esp + 0x4c]
mov word [eax], 0xd
mov word [eax + 2], cx
jmp 0x4a9d17
mov ecx, 0xa
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add ebx, ebp
add edx, ebx
cmp edx, eax
jb 0x4a9d2b
add ebp, esi
jmp 0x4a9d49
lea ebp, [esi + ebp - 4]
cmp word [ebp], 0xd
jne 0x4a9d3c
cmp word [ebp + 2], cx
je 0x4a9d41
sub ebp, 2
jmp 0x4a9d2f
cmp ebp, esi
jbe 0x4a9f04
mov edx, dword [esp + 0x2c]
mov eax, ebp
xor ebx, ebx
sub eax, edi
cmp edx, ebx
mov word [ebp], 0xd
mov word [ebp + 2], cx
mov word [ebp + 4], bx
mov dword [esp + 0x40], eax
jne 0x4a9e04
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
shr eax, 1
push eax
push edi
mov dword [esp + 0x3c], ebx
call fcn.004aa010
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4a9ef4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
sub eax, edi
mov dword [esp + 0x2c], 1
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [edx], eax
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
je 0x4a9ef4
mov bx, word [eax + esi]
mov ebp, dword [esp + 0x60]
mov word [eax + esi], 0
mov eax, dword [esp + 0x5c]
mov edx, dword [edx]
push ebp
push eax
push esi
push edx
call ecx
mov eax, dword [esp + 0x30]
add esp, 0x10
mov word [esi + eax*2], bx
mov eax, dword [ebp]
test eax, eax
jne 0x4a9fa7
jmp 0x4a9ef4
shr eax, 1
mov esi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], eax
je 0x4a9eb1
cmp word [esi], 0x5b
jne 0x4a9e9b
mov ebx, 0x20
mov edx, esi
cmp word [esi - 2], bx
jne 0x4a9e32
add esi, 0xfffffffe
cmp word [esi - 2], bx
je 0x4a9e29
cmp word [esi - 4], 0xd
jne 0x4a9e96
cmp word [esi - 2], cx
jne 0x4a9e96
mov cx, word [edx + 2]
lea eax, [edx + 2]
cmp cx, 0x5d
je 0x4a9e66
cmp cx, 0xd
jne 0x4a9e59
cmp word [eax + 2], 0xa
je 0x4a9e66
mov cx, word [eax + 2]
add eax, 2
cmp cx, 0x5d
jne 0x4a9e4c
cmp word [eax], 0x5d
jne 0x4a9e8d
add eax, 2
cmp word [eax], bx
jne 0x4a9e7c
add eax, 2
cmp word [eax], bx
je 0x4a9e74
cmp word [eax], 0xd
jne 0x4a9e8d
cmp word [eax + 2], 0xa
je 0x4a9f29
mov eax, dword [esp + 0x3c]
mov ecx, 0xa
lea esi, [edx + 2]
jmp 0x4a9e9e
add esi, 2
mov edx, dword [esp + 0x20]
inc edx
cmp edx, eax
mov dword [esp + 0x20], edx
jb 0x4a9e16
xor ebx, ebx
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, edi
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4a9ef4
mov si, word [ebp]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov word [ebp], bx
mov ebx, dword [esp + 0x60]
push ebx
push edx
push edi
push eax
call dword [esp + 0x68]
mov word [ebp], si
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
jne 0x4a9fa7
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add eax, ecx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a9fd5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edx, eax
jae 0x4a9fd5
mov ebp, dword [esp + 0x10]
jmp 0x4a9c0f
mov eax, dword [esp + 0x54]
mov ecx, esi
sub ecx, edi
mov dword [esp + 0x24], 1
mov edx, dword [eax]
sub ecx, 4
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a9ef4
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov bx, word [esi - 4]
push ebp
push edx
push edi
push eax
mov word [esi - 4], 0
call dword [esp + 0x68]
mov word [esi - 4], bx
mov eax, dword [ebp]
add esp, 0x10
test eax, eax
jne 0x4a9fa7
jmp 0x4a9ef4
mov eax, dword [esp + 0x18]
push eax
call fcn.005acc35
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005acc35
mov edx, dword [esp + 0x54]
push edx
call fcn.005acc35
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.005acc35
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005acc35
mov edx, dword [esp + 0x54]
push edx
call fcn.005acc35
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.005acc35
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005acc35
mov edx, dword [esp + 0x54]
push edx
call fcn.005acc35
mov ecx, dword [esp + 0x38]
add esp, 0xc
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x34
ret