Function at 0x48afe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x59c]
push esi
push edi
push eax
mov edi, ecx
push 1
lea esi, [edi + 4]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov eax, dword [esi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [esi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 4
push edi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov eax, dword [edi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [edi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0xc]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov eax, dword [esi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [esi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 8]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov eax, dword [esi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [esi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x10]
push 2
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ax, word [esi]
rol ax, 8
mov word [esi], ax
movzx ecx, word [edi + 0x10]
push ecx
lea esi, [edi + 0x14]
mov ecx, 2
call fcn.0046ea70
movzx edx, word [edi + 0x10]
lea esi, [edi + 0x1c]
push edx
mov ecx, 2
call fcn.00424960
xor eax, eax
mov dword [ebp - 8], 0
cmp ax, word [edi + 0x10]
jae 0x48b1e1
mov edi, edi
mov eax, dword [ebx + 0x59c]
mov ecx, dword [ebp - 8]
mov esi, dword [edi + 0x14]
push eax
add ecx, ecx
push 1
add esi, ecx
push 2
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov cx, word [esi]
mov eax, dword [ebp - 8]
rol cx, 8
mov word [esi], cx
mov edx, dword [edi + 0x14]
add eax, eax
add eax, edx
cmp word [eax], 0xffff
jne 0x48b199
mov ecx, 3
mov word [eax], cx
mov eax, dword [ebx + 0x59c]
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebp - 8]
push eax
push 1
lea esi, [edx + ecx*4]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebp - 8]
movzx edx, word [edi + 0x10]
inc eax
mov dword [ebp - 8], eax
cmp eax, edx
jb 0x48b150
mov esi, dword [ebx + 0x59c]
push 0x38
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6e0
mov esi, dword [ebx + 0x59c]
push 0x42
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6e0
mov esi, dword [ebx + 0x59c]
push 0x49
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6e0
mov esi, dword [ebx + 0x59c]
push 0x4d
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6e0
mov eax, dword [ebx + 0x59c]
push eax
push 4
lea eax, [edi + 0x24]
push 1
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 4
jne 0x48b6e0
mov byte [edi + 0x28], 0
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x29]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x2a]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x2b]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea ecx, [ebp - 5]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x2c]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
call fcn.004a1716
add eax, dword [esi]
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x30]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov esi, dword [esi]
test esi, esi
je 0x48b44a
cmp esi, 0x14
jne 0x48b6e0
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x34]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x38]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x3c]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x40]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x44]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x45]
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea ecx, [ebp - 8]
push 2
push ecx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x48]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov edx, dword [esi]
mov eax, dword [ebx + 0x59c]
push 1
push edx
push eax
call fcn.0049edbf
add esp, 0xc
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.0048c6c0
test eax, eax
jne 0x48b6e5
or byte [esi], 3
mov al, byte [esi]
mov ecx, dword [ebx + 0x59c]
push ecx
movzx eax, al
push eax
lea ecx, [edi + 0x4d]
push 1
push ecx
call fcn.0049ea18
movzx ecx, byte [esi]
add esp, 0x10
cmp eax, ecx
jne 0x48b6e0
mov byte [ecx + edi + 0x4d], 0
mov eax, dword [ebx + 0x59c]
push eax
call fcn.004a1716
add esp, 4
cmp eax, dword [ebp - 0xc]
jg 0x48b6b0
mov esi, dword [ebx + 0x59c]
push 0x38
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6b0
mov esi, dword [ebx + 0x59c]
push 0x42
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6b0
mov esi, dword [ebx + 0x59c]
push 0x49
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6b0
mov esi, dword [ebx + 0x59c]
push 0x4d
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48b6b0
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edx, [ebp - 0x18]
push 4
push edx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
lea ecx, [ebp - 0x18]
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
lea ecx, [ebp - 0x14]
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
call fcn.004a1716
add eax, dword [ebp - 0x14]
add esp, 4
cmp dword [ebp - 0x18], 0x6c756e69
je 0x48b605
mov ecx, dword [ebx + 0x59c]
push 0
push eax
push ecx
call fcn.0049edbf
add esp, 0xc
test eax, eax
jne 0x48b6e5
mov eax, dword [ebx + 0x59c]
push eax
call fcn.004a1716
add esp, 4
cmp eax, dword [ebp - 0xc]
jle 0x48b4f3
jmp 0x48b6b0
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea ecx, [ebp - 8]
push 4
push ecx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b6e0
lea ecx, [ebp - 8]
call fcn.0048c690
test eax, eax
jne 0x48b6e5
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
call fcn.004a1bd0
mov esi, esp
test esi, esi
jne 0x48b650
lea eax, [esp + 4]
jmp 0x48b6e5
mov eax, dword [ebx + 0x59c]
mov edx, dword [ebp - 8]
push eax
push edx
push 2
push esi
call fcn.0049ea18
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, ecx
jne 0x48b6e0
xor eax, eax
test ecx, ecx
jbe 0x48b687
mov cx, word [esi + eax*2]
rol cx, 8
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 8]
inc eax
cmp eax, ecx
jb 0x48b673
xor edx, edx
push esi
lea eax, [ebp - 0x10]
mov word [esi + ecx*2], dx
mov dword [ebp - 0x10], edx
call fcn.0043c460
lea eax, [ebp - 0x10]
push eax
add edi, 0x150
call fcn.00401250
lea ecx, [ebp - 0x10]
call fcn.00401420
mov eax, dword [ebx + 0x59c]
push eax
call fcn.004a1716
mov ecx, dword [ebp - 0xc]
add esp, 4
cmp eax, ecx
je 0x48b6dc
mov ebx, dword [ebx + 0x59c]
push 0
push ecx
push ebx
call fcn.0049edbf
add esp, 0xc
test eax, eax
jne 0x48b6e5
xor eax, eax
jmp 0x48b6e5
mov eax, 3
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret 4