Function at 0x48bf40
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 0x48bf7b
push eax
call fcn.0049eebb
add esp, 4
mov dword [ebp + 0x59c], esi
mov eax, dword [ebp + 0x18c]
cmp eax, esi
je 0x48bf90
call fcn.0048c7b0
and dword [ebp + 0x190], 1
mov dword [ebp + 0x18c], esi
mov dword [esp + 0x18], esi
cmp ebx, esi
je 0x48bfc9
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48bfb0
sub eax, edx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.0043c500
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edi, [ebp + 0x5a0]
call fcn.00401250
test esi, esi
je 0x48c002
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x48bff9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x48c002
test eax, eax
jne 0x48c002
call fcn.0045f5a0
push 0x4d0bc8
push ebx
lea esi, [ebp + 0x598]
call fcn.004313a0
mov esi, dword [ebp + 0x59c]
test esi, esi
jne 0x48c022
lea eax, [esi + 2]
jmp 0x48c053
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov al, byte [esp + 0x17]
cmp al, 0x38
je 0x48c06e
movsx eax, al
push esi
push eax
call fcn.004a1875
add esp, 8
mov eax, 3
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ceb0
add esp, 0x32c
ret 8
mov esi, dword [ebp + 0x59c]
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov al, byte [esp + 0x17]
cmp al, 0x42
je 0x48c09a
movsx edx, al
push esi
push edx
jmp 0x48c046
mov esi, dword [ebp + 0x59c]
push 0x50
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48c04e
mov esi, dword [ebp + 0x59c]
push 0x53
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48c04e
mov eax, dword [ebp + 0x59c]
push eax
push 1
push 2
push ebp
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ax, word [ebp]
rol ax, 8
movzx eax, ax
mov word [ebp], ax
cmp ax, 1
jne 0x48c04e
mov eax, dword [ebp + 0x59c]
push eax
push 6
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.0049ea18
add esp, 0x10
cmp eax, 6
jne 0x48c04e
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 2]
push 2
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
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.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48c053
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 8]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48c053
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
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.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ax, word [esi]
rol ax, 8
mov word [esi], ax
movzx eax, ax
cmp ax, 3
je 0x48c20f
cmp ax, 2
jne 0x48c04e
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x10]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
test eax, eax
jne 0x48c053
mov esi, dword [esi]
test esi, esi
je 0x48c3f6
cmp esi, 0x300
jne 0x48c04e
mov ecx, dword [ebp + 0x59c]
push ecx
push 1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0049ea18
push 0x100
lea eax, [ebp + 0x194]
push 0xff000000
push eax
call fcn.0046c5a0
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 0x48c29b
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x20]
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
xor ebx, ebx
cmp eax, ebx
jne 0x48c053
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1716
mov edi, eax
mov eax, dword [ebp + 0x59c]
add esp, 4
push eax
call fcn.004a1716
mov edx, dword [esi]
add edx, edi
add esp, 4
cmp eax, edx
jge 0x48c472
nop
mov ecx, ebp
call fcn.0048ae10
test eax, eax
jne 0x48c472
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1716
mov ecx, dword [esi]
add ecx, edi
add esp, 4
cmp eax, ecx
jl 0x48c450
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1716
mov edx, dword [esi]
add edx, edi
add esp, 4
cmp eax, edx
jne 0x48c04e
mov eax, dword [ebp + 0x59c]
push eax
push 1
push 4
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
cmp eax, ebx
jne 0x48c053
cmp dword [esi], ebx
je 0x48c5f1
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1716
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.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
mov ecx, esi
call fcn.0048c690
cmp eax, ebx
jne 0x48c053
mov eax, dword [ebp + 0x59c]
push eax
push 1
lea esi, [ebp + 0x1c]
push 2
push esi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c04e
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.0048c720
mov dword [esp + 0x18], 0
test edi, edi
jle 0x48c57b
xor esi, esi
mov ecx, dword [ebx]
add ecx, esi
push ebp
call fcn.0048afe0
test eax, eax
jne 0x48c053
mov eax, dword [esp + 0x18]
inc eax
add esi, 0x168
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x48c556
xor eax, eax
cmp edi, eax
mov dword [esp + 0x18], eax
jle 0x48c5b9
mov dword [esp + 0x20], eax
lea esp, [esp]
mov esi, dword [ebx]
add esi, dword [esp + 0x20]
push ebp
call fcn.0048b700
test eax, eax
jne 0x48c053
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x168
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x48c590
mov eax, dword [ebp + 0x59c]
push eax
call fcn.004a1716
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x48c5e2
push 0
push ecx
mov ecx, dword [ebp + 0x59c]
push ecx
call fcn.0049edbf
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.004a1716
xor edx, edx
add esp, 4
mov dword [ebp + 0x188], eax
mov dword [esp + 0x20], ebx
cmp dx, word [edi]
jae 0x48c650
add ebp, 0x38
lea eax, [esp + 0x20]
push eax
mov esi, ebp
call fcn.0046ea10
mov eax, dword [esp + 0x20]
movzx ecx, word [edi]
inc eax
movsx edx, ax
cmp edx, ecx
mov dword [esp + 0x20], eax
jl 0x48c631
xor eax, eax
jmp 0x48c053