Function at 0x616029d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
test byte [0x61607018], 8
jne 0x61602c60
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x61602c48
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x61602a20
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0
mov esi, 0x4c7
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call dword [ebp + 0x20]
sub esp, 0xc
test eax, eax
je 0x61602c3a
mov dword [esp + 8], 0x40c44
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x61602f6e
lea edx, [eax + 0x38]
mov ecx, 0x284
xor eax, eax
cmp dword [ebp + 0x1c], 1
mov edi, edx
lea edx, [ebx + 0xa48]
rep stosd dword es:[edi], eax
mov ecx, 0x3e
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
sbb ecx, ecx
and ecx, 0xfe800000
add eax, 0x7fff
add ecx, 0x2000000
and eax, 0xffff8000
add eax, dword [ebp + 0x14]
mov byte [edi], 0
mov edi, eax
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0x22
cmp eax, 0x20000
jbe 0x61602ce0
mov edx, 0x24
mov eax, 0x20000
lea esi, [esi]
nop
add eax, eax
mov esi, edx
add edx, 2
cmp edi, eax
jbe 0x61602ae2
cmp eax, 0x7ffff
jbe 0x61602ad0
mov dword [ebx + 0x2c], esi
cmp ecx, edi
cmova ecx, edi
cmp eax, ecx
jae 0x61602b0d
mov esi, dword [ebx + 0x2c]
mov edx, 4
lea esi, [esi]
lea esi, [esi]
add eax, eax
add esi, edx
add edx, edx
cmp eax, ecx
jb 0x61602b00
mov dword [ebx + 0x2c], esi
test byte [0x61607018], 8
jne 0x61602e00
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x18], 0
add eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], 0
lea edx, [esi + 2]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], esi
cmp eax, edx
jb 0x61602e30
mov esi, dword [ebp + 8]
mov dword [ebx + 4], edx
movzx ecx, word [esi]
lea edi, [edx + ecx]
mov dword [ebx + 8], edi
cmp eax, edi
jb 0x61602e30
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x18]
add esi, dword [ebp + 0x14]
add ecx, 0x8000
mov dword [ebp - 0x38], esi
cmp ecx, esi
cmova ecx, esi
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x2c], ecx
mov esi, ecx
mov ecx, dword [ebx + 0x14]
shl ecx, 0x10
cmp edi, esi
jae 0x61602ca0
mov dword [ebx + 0x1c], 0x10
mov ecx, 0xffff0000
or ecx, 0xffff
add dword [ebx + 0x1c], 0x10
mov dword [ebx + 0x14], ecx
shr ecx, 0x1f
mov dword [ebx + 0x18], 0x1f
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], ecx
jne 0x61602e40
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x38]
jmp 0x61602c05
cmp dword [ebp - 0x1c], esi
jae 0x61602c09
mov dword [esp], esi
lea ecx, [ebp - 0x1c]
mov edx, edi
mov eax, ebx
call sym._decode_lzxd_block.constprop.0
test eax, eax
jne 0x61602e30
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x61602f00
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
cmp edx, eax
jb 0x61602bd8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x61602cf0
xor esi, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp + 0x14], 1
sbb esi, esi
lea esp, [ebp - 0xc]
not esi
pop ebx
and esi, 0xc00e4102
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], str.decoding_stream_of_size__u_to_size__u__starting_at__u_n
mov dword [esp + 8], str.decode_lzxd_stream
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x61607018
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
jmp 0x616029e6
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 0x18], 0x10
mov dword [ebx + 4], esi
mov esi, dword [ebp + 8]
movzx edx, word [esi + 2]
or ecx, edx
lea edx, [esi + 6]
mov dword [ebx + 0x14], ecx
shl ecx, 0x10
cmp edi, edx
jb 0x61602f66
movzx esi, word [esi + 4]
mov dword [ebx + 4], edx
or ecx, esi
mov dword [ebx + 0x14], ecx
jmp 0x61602baa
mov eax, 0x20000
jmp 0x61602ae5
mov esi, dword [ebp + 0x10]
mov eax, 0x40000000
add esi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp dword [ebp + 0x14], 0x40000000
cmovle eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
test edx, edx
jle 0x61602c14
sub eax, 0xa
mov dword [ebp - 0x34], 0
mov edx, esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x48]
lea eax, [ebx + 0x7ff6]
mov ecx, ebx
cmp eax, edi
cmovg eax, edi
mov esi, eax
cmp ebx, eax
jl 0x61602d55
jmp 0x61602db5
inc ecx
cmp esi, ecx
jle 0x61602db5
cmp byte [edx + ecx], 0xe8
jne 0x61602d50
lea eax, [edx + ecx + 1]
lea ebx, [edx + ecx + 3]
mov dword [ebp - 0x38], eax
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x3c], eax
movzx eax, byte [eax]
mov dword [ebp - 0x40], ebx
lea ebx, [ecx + 4]
lea edi, [edx + ebx]
shl eax, 8
mov dword [ebp - 0x2c], edi
mov edi, eax
lea eax, [edx + ecx + 3]
movzx eax, byte [eax]
shl eax, 0x10
or eax, edi
lea edi, [edx + ecx + 1]
movzx edi, byte [edi]
or eax, edi
mov edi, dword [ebp - 0x2c]
movzx edi, byte [edi]
shl edi, 0x18
or eax, edi
mov edi, ecx
neg edi
cmp eax, edi
jl 0x61602dae
cmp dword [ebp - 0x30], eax
jg 0x61602dd0
mov ecx, ebx
inc ecx
cmp esi, ecx
jg 0x61602d55
add dword [ebp - 0x34], 0x8000
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x44]
jl 0x61602d30
mov ebx, dword [ebp - 0x4c]
jmp 0x61602c14
mov edi, eax
sub edi, ecx
mov ecx, dword [ebp - 0x30]
add ecx, eax
test eax, eax
mov eax, dword [ebp - 0x3c]
cmovns ecx, edi
mov edi, dword [ebp - 0x38]
mov byte [edi], cl
mov edi, dword [ebp - 0x40]
mov byte [eax], ch
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [edi], al
mov edi, dword [ebp - 0x2c]
mov byte [edi], cl
mov ecx, ebx
jmp 0x61602db0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.setting_window_to_0x_X_n
mov dword [esp + 8], str.decode_lzxd_stream
mov dword [esp + 4], 0x61607018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x61602b1a
mov esi, 0xc00e4101
jmp 0x61602c16
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x18], 0xf
mov esi, ecx
shl ecx, 0x10
shr esi, 0xf
mov dword [ebp - 0x40], esi
lea esi, [edx + 2]
mov dword [ebp - 0x30], esi
cmp edi, esi
jae 0x61602ec2
mov esi, dword [ebp - 0x30]
or ecx, 0xffff
add dword [ebx + 0x1c], 0x10
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0xffff0000
mov esi, dword [ebp - 0x40]
shr ecx, 0xf
mov dword [ebx + 0x18], 0xf
movzx ecx, cx
shl esi, 0x10
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x34], edi
jbe 0x61602eeb
mov edx, dword [ebp - 0x2c]
add dword [ebx + 0x1c], 0x10
or edx, 0xffff
mov dword [ebx + 0x14], edx
or ecx, dword [ebp - 0x30]
mov dword [ebx + 0x18], 0x1f
mov dword [ebp - 0x30], ecx
test byte [0x61607018], 8
jne 0x61602f30
mov edx, dword [ebx + 4]
jmp 0x61602bc4
movzx esi, word [edx]
add edx, 4
mov dword [ebp - 0x34], edx
mov word [ebp - 0x2c], si
mov esi, dword [ebp - 0x30]
mov dword [ebx + 4], esi
movzx esi, word [ebp - 0x2c]
or ecx, esi
mov edx, ecx
mov dword [ebx + 0x14], ecx
shl edx, 0x10
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x30]
jmp 0x61602e79
mov esi, dword [ebp - 0x34]
movzx edx, word [edx]
or edx, dword [ebp - 0x2c]
mov dword [ebx + 4], esi
mov dword [ebx + 0x14], edx
jmp 0x61602ea4
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call dword [ebp + 0x20]
sub esp, 0xc
test eax, eax
jne 0x61602bff
mov esi, 0x4c7
jmp 0x61602c16
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], str.E8_transform_detected__file_size__u_n
mov dword [esp + 8], str.decode_lzxd_stream
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x61607018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
jmp 0x61602bc4
mov edx, dword [ebp - 0x2c]
jmp 0x61602b9d
mov esi, 0xe
jmp 0x61602c3a