Function at 0x48baa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x32c
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
mov ebx, dword [esp + 0x338]
push ebp
mov ebp, dword [esp + 0x338]
mov eax, dword [ebp + 0x59c]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x48badb
push eax
call fcn.0049ea2b
add esp, 4
mov dword [ebp + 0x59c], esi
mov eax, dword [ebp + 0x18c]
cmp eax, esi
je 0x48baf0
call fcn.0048c310
and dword [ebp + 0x190], 1
mov dword [ebp + 0x18c], esi
mov dword [esp + 0x18], esi
cmp ebx, esi
je 0x48bb29
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48bb10
sub eax, edx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.0043c200
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edi, [ebp + 0x5a0]
call fcn.00401250
test esi, esi
je 0x48bb62
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x48bb59
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x48bb62
test eax, eax
jne 0x48bb62
call fcn.0045f130
push 0x4d0bb8
push ebx
lea esi, [ebp + 0x598]
call fcn.00431110
mov esi, dword [ebp + 0x59c]
test esi, esi
jne 0x48bb82
lea eax, [esi + 2]
jmp 0x48bbb3
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov al, byte [esp + 0x17]
cmp al, 0x38
je 0x48bbce
movsx eax, al
push esi
push eax
call fcn.004a13d5
add esp, 8
mov eax, 3
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ca20
add esp, 0x32c
ret 8
mov esi, dword [ebp + 0x59c]
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov al, byte [esp + 0x17]
cmp al, 0x42
je 0x48bbfa
movsx edx, al
push esi
push edx
jmp 0x48bba6
mov esi, dword [ebp + 0x59c]
push 0x50
call fcn.0048c240
add esp, 4
test al, al
je 0x48bbae
mov esi, dword [ebp + 0x59c]
push 0x53
call fcn.0048c240
add esp, 4
test al, al
je 0x48bbae
mov eax, dword [ebp + 0x59c]
push eax
push 1
push 2
push ebp
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ax, word [ebp]
rol ax, 8
movzx eax, ax
mov word [ebp], ax
cmp ax, 1
jne 0x48bbae
mov eax, dword [ebp + 0x59c]
push eax
push 6
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.0049e588
add esp, 0x10
cmp eax, 6
jne 0x48bbae
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 2]
push 2
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov dx, word [esi]
rol dx, 8
mov word [esi], dx
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 4]
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
test eax, eax
jne 0x48bbb3
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 8]
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
test eax, eax
jne 0x48bbb3
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov cx, word [esp + 0x24]
mov eax, dword [ebp + 0x59c]
push eax
rol cx, 8
push 1
movzx edx, cx
lea esi, [ebp + 0xe]
push 2
push esi
mov dword [esp + 0x34], edx
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ax, word [esi]
rol ax, 8
mov word [esi], ax
movzx eax, ax
cmp ax, 3
je 0x48bd6f
cmp ax, 2
jne 0x48bbae
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x10]
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
test eax, eax
jne 0x48bbb3
mov esi, dword [esi]
test esi, esi
je 0x48bf56
cmp esi, 0x300
jne 0x48bbae
mov ecx, dword [ebp + 0x59c]
push ecx
push 1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0049e588
push 0x100
lea eax, [ebp + 0x194]
push 0xff000000
push eax
call fcn.0046c140
add esp, 0x1c
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 5
lea edi, [ecx + 4]
lea esi, [ecx + 3]
lea edx, [ecx + 2]
lea eax, [ecx + 1]
mov ebx, ecx
and ebx, 0xff
lea ebx, [ebp + ebx*4 + 0x194]
mov dword [esp + 0x1c], ebx
mov ebx, ecx
shr ebx, 8
mov ecx, 2
sub ecx, ebx
add ecx, ecx
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0x2f]
shl ebx, cl
mov ecx, dword [esp + 0x1c]
or dword [ecx], ebx
mov ecx, eax
and ecx, 0xff
lea ecx, [ebp + ecx*4 + 0x194]
mov dword [esp + 0x1c], ecx
mov ebx, eax
shr ebx, 8
mov ecx, 2
sub ecx, ebx
add ecx, ecx
movzx ebx, byte [esp + eax + 0x30]
add ecx, ecx
add ecx, ecx
shl ebx, cl
mov ecx, dword [esp + 0x1c]
or dword [ecx], ebx
mov ecx, edx
and ecx, 0xff
lea ecx, [ebp + ecx*4 + 0x194]
mov dword [esp + 0x1c], ecx
mov ebx, edx
shr ebx, 8
mov ecx, 2
sub ecx, ebx
movzx ebx, byte [esp + edx + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebx, cl
mov ecx, dword [esp + 0x1c]
or dword [ecx], ebx
mov ecx, esi
and ecx, 0xff
lea ecx, [ebp + ecx*4 + 0x194]
mov dword [esp + 0x1c], ecx
mov ebx, esi
shr ebx, 8
mov ecx, 2
sub ecx, ebx
movzx ebx, byte [esp + esi + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebx, cl
mov ecx, dword [esp + 0x1c]
or dword [ecx], ebx
mov ecx, edi
and ecx, 0xff
lea ecx, [ebp + ecx*4 + 0x194]
mov dword [esp + 0x1c], ecx
mov ebx, edi
shr ebx, 8
mov ecx, 2
sub ecx, ebx
movzx ebx, byte [esp + edi + 0x30]
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebx, cl
mov ecx, dword [esp + 0x1c]
or dword [ecx], ebx
mov ecx, dword [esp + 0x18]
mov ebx, ecx
and ebx, 0xff
lea ebx, [ebp + ebx*4 + 0x194]
mov dword [esp + 0x1c], ebx
mov ebx, ecx
shr ebx, 8
mov ecx, 2
sub ecx, ebx
mov ebx, dword [esp + 0x18]
movzx ebx, byte [esp + ebx + 0x30]
add dword [esp + 0x18], 6
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebx, cl
mov ecx, dword [esp + 0x1c]
add eax, 6
add edx, 6
or dword [ecx], ebx
mov ecx, dword [esp + 0x20]
add ecx, 6
add esi, 6
add edi, 6
mov dword [esp + 0x20], ecx
cmp eax, 0x301
jb 0x48bdfb
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x20]
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
xor ebx, ebx
cmp eax, ebx
jne 0x48bbb3
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1276
mov edi, eax
mov eax, dword [ebp + 0x59c]
add esp, 4
push eax
call fcn.004a1276
mov edx, dword [esi]
add edx, edi
add esp, 4
cmp eax, edx
jge 0x48bfd2
nop
mov ecx, ebp
call fcn.0048a970
test eax, eax
jne 0x48bfd2
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1276
mov ecx, dword [esi]
add ecx, edi
add esp, 4
cmp eax, ecx
jl 0x48bfb0
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1276
mov edx, dword [esi]
add edx, edi
add esp, 4
cmp eax, edx
jne 0x48bbae
mov eax, dword [ebp + 0x59c]
push eax
push 1
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
cmp eax, ebx
jne 0x48bbb3
cmp dword [esi], ebx
je 0x48c151
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1276
add eax, dword [esi]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x18]
push 4
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ecx, esi
call fcn.0048c1f0
cmp eax, ebx
jne 0x48bbb3
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x1c]
push 2
push esi
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x48bbae
mov ax, word [esi]
rol ax, 8
mov word [esi], ax
movsx eax, word [ebp + 0x1c]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
lea ebx, [ebp + 0x18c]
push edi
mov esi, ebx
call fcn.0048c280
mov dword [esp + 0x18], 0
test edi, edi
jle 0x48c0db
xor esi, esi
mov ecx, dword [ebx]
add ecx, esi
push ebp
call fcn.0048ab40
test eax, eax
jne 0x48bbb3
mov eax, dword [esp + 0x18]
inc eax
add esi, 0x168
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x48c0b6
xor eax, eax
cmp edi, eax
mov dword [esp + 0x18], eax
jle 0x48c119
mov dword [esp + 0x20], eax
lea esp, [esp]
mov esi, dword [ebx]
add esi, dword [esp + 0x20]
push ebp
call fcn.0048b260
test eax, eax
jne 0x48bbb3
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x168
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x48c0f0
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1276
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x48c142
push 0
push ecx
mov ecx, dword [ebp + 0x59c]
push ecx
call fcn.0049e92f
add esp, 0xc
movsx eax, word [ebp + 0x1c]
cdq
xor eax, edx
sub eax, edx
mov word [ebp + 0x1c], ax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov cx, word [ebp + 2]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x59c]
lea edi, [ebp + 2]
push eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x30], edx
mov word [ebp + 0x34], cx
call fcn.004a1276
xor edx, edx
add esp, 4
mov dword [ebp + 0x188], eax
mov dword [esp + 0x20], ebx
cmp dx, word [edi]
jae 0x48c1b0
add ebp, 0x38
lea eax, [esp + 0x20]
push eax
mov esi, ebp
call fcn.0046e5b0
mov eax, dword [esp + 0x20]
movzx ecx, word [edi]
inc eax
movsx edx, ax
cmp edx, ecx
mov dword [esp + 0x20], eax
jl 0x48c191
xor eax, eax
jmp 0x48bbb3