Function at 0x7ef632cc
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x7ef93b11
call fcn.7ef890d8
push ecx
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 1
push dword [ebp + 8]
call fcn.7ef61631
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x7ef63975
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 2
je 0x7ef63975
call dword [0x7ef960b0]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x1c], 0
cmp dword [ebp + 0x14], 0
je 0x7ef6333a
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
jne 0x7ef637dd
mov ecx, dword [ebp - 0x18]
add ecx, 0x2c
call fcn.7ef856b8
call dword [0x7ef960ac]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0x14], 1
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x7ef6338c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
cmp dword [ebp - 0x30], 0
jne 0x7ef6379c
cmp dword [ebp + 0x10], 0
je 0x7ef6379c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x14]
cmp ecx, dword [eax + 0xc]
jb 0x7ef633c4
mov dword [ebp - 0x24], 0x1e7
mov dword [ebp - 0x30], 1
jmp 0x7ef63797
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
jl 0x7ef6341a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
add eax, 0x4c
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0
jne 0x7ef633f1
and dword [ebp - 0xf0], 0
jmp 0x7ef6340c
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [eax + 8]
sub eax, dword [ecx + 4]
sar eax, 4
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xf0]
jb 0x7ef6343f
mov eax, dword [ebp - 0x18]
push dword [eax + 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.7ef63066
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x3c], eax
jmp 0x7ef634c6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shl eax, 4
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebp - 0x40]
jb 0x7ef6349b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shl eax, 4
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x40]
add edx, dword [ecx + eax + 8]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], edx
jb 0x7ef634bd
mov eax, dword [ebp - 0x18]
push dword [eax + 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
call fcn.7ef63066
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x3c], eax
jmp 0x7ef634c6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x3c]
je 0x7ef63684
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x3c]
shl eax, 4
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx + eax + 4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], 0x7efa5bc8
mov ecx, 0x7efa5bc8
call fcn.7ef856b8
mov byte [ebp - 4], 1
push 0
push 0
push dword [ebp - 0x50]
push dword [0x7efa2488]
call dword [0x7ef960e0]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shl eax, 4
mov ecx, dword [ebp - 0xb0]
add ecx, eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.7ef63a89
pop ecx
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push dword [0x7efa2488]
call dword [0x7ef96040]
test eax, eax
je 0x7ef63594
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
je 0x7ef635a0
mov dword [ebp - 0x30], 1
jmp 0x7ef6366d
cmp dword [ebp - 0x58], 0
je 0x7ef635b2
mov ecx, dword [ebp - 0x58]
call fcn.7ef856ec
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
add eax, 0x1c
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp dword [eax + 4], 0
jne 0x7ef635dc
and dword [ebp - 0x100], 0
jmp 0x7ef635f4
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [eax + 8]
sub eax, dword [ecx + 4]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
cmp eax, dword [ebp - 0x5c]
jae 0x7ef6361b
and byte [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call fcn.7ef85327
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x200000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef6364a
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push str.Decompress_block_at_0x_x__in_size0x_x__out_size0x_x_n
call fcn.7ef54190
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xe0], eax
push dword [ebp - 0x5c]
push dword [ebp - 0xe0]
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.7ef83529
add esp, 0x10
call fcn.7ef63b0d
and byte [ebp - 4], 0
cmp dword [ebp - 0x58], 0
je 0x7ef63684
mov ecx, dword [ebp - 0x58]
call fcn.7ef856ec
cmp dword [ebp - 0x30], 0
jne 0x7ef63797
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shl eax, 4
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shl eax, 4
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x64]
jbe 0x7ef636ff
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x104], eax
jmp 0x7ef63708
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jg 0x7ef63720
mov dword [ebp - 0x30], 1
jmp 0x7ef63797
push dword [ebp - 0x70]
push dword [ebp + 0xc]
call dword [0x7ef961a4]
test eax, eax
je 0x7ef63744
mov dword [ebp - 0x38], 0x3e6
mov dword [ebp - 0x30], 1
and dword [ebp - 0x14], 0
jmp 0x7ef63797
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp + 0xc]
call fcn.7ef89190
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x70]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x70]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
jmp 0x7ef6338c
jmp 0x7ef637b9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
and dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x2c
call fcn.7ef856ec
push dword [ebp - 0x38]
call dword [0x7ef96044]
jmp 0x7ef63915
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 1
jne 0x7ef63915
call dword [0x7ef960b0]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2c
call fcn.7ef856b8
call dword [0x7ef960ac]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x7c], eax
cmp dword [ebp + 0x18], 0
je 0x7ef63838
push 0
push 0
mov eax, dword [ebp + 0x18]
push dword [eax + 8]
push dword [ebp + 8]
call dword [0x7ef960e0]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [0x7ef96040]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x28]
add eax, 0x38
mov dword [ebp - 0x84], eax
and dword [ebp - 0x88], 0
jmp 0x7ef6387a
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x1c]
jae 0x7ef638ca
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x88]
add ecx, dword [eax + 0x14]
movzx eax, cl
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x88]
add edx, dword [ecx + 0x14]
and edx, 7
mov ecx, dword [ebp - 0x84]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x88]
movzx edx, byte [edx]
xor edx, ecx
xor edx, eax
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x88]
mov byte [eax], dl
jmp 0x7ef6386d
cmp dword [ebp + 0x18], 0
je 0x7ef638eb
push 0
push 0
push dword [ebp - 0x7c]
push dword [ebp + 8]
call dword [0x7ef960e0]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x14], ecx
jmp 0x7ef638fa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x18]
and dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x2c
call fcn.7ef856ec
push dword [ebp - 0x80]
call dword [0x7ef96044]
cmp dword [ebp + 0x14], 0
je 0x7ef63923
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp + 0x18], 0
je 0x7ef63935
mov eax, dword [ebp + 0x18]
push dword [eax + 0x10]
call dword [0x7ef961a0]
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x200000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef63970
call dword [0x7ef960b0]
push eax
push dword [ebp - 0x1c]
push 1
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp + 8]
push str.ReadFile__internal__h_x_sz_x_olap_x_____x__read__x__er_x__n
call fcn.7ef54190
add esp, 0x1c
jmp 0x7ef63a75
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x7ef96040]
mov dword [ebp - 0x14], eax
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x200000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef63a64
call dword [0x7ef960b0]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x7ef63a48
push 0
push 0
lea eax, [ebp - 0x98]
push eax
push 0x400
call dword [0x7ef960b0]
push eax
push 0
push 0x1100
call dword [0x7ef9619c]
push 1
push 0
push 0
push dword [ebp + 8]
call dword [0x7ef960e0]
mov dword [ebp - 0x94], eax
push dword [ebp - 0x98]
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.ReadFile__external__h_x_sz_x_____x__post_off_x__read_out__x___er_x:_s__n
call fcn.7ef54190
add esp, 0x20
push dword [ebp - 0x98]
call dword [0x7ef96198]
push dword [ebp - 0x90]
call dword [0x7ef96044]
jmp 0x7ef63a64
push dword [ebp - 0x8c]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.ReadFile__external__h_x_sz_x_____x__read__x__er0__n
call fcn.7ef54190
add esp, 0x14
cmp dword [ebp + 0x14], 0
je 0x7ef63a75
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x8c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14