Function at 0x40dfa0
Capabilities:
Compress data via winapi

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x44696a
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x467040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp + 0x50], eax
mov dword [ebp + 8], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
xor esi, esi
xor edi, edi
mov dword [ebp + 0x40], esi
xor ebx, ebx
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], ebx
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x40e014
mov eax, dword [eax]
sub esp, 8
lea ecx, [ebp - 0xc4]
push 0x20
push eax
call fcn.0040d3a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::good_void_const]
lea ecx, [ebp - 0xc4]
test al, al
jne 0x40e052
call fcn.0040c700
jmp 0x40e362
mov eax, dword [ebp - 0xc4]
push 2
push 0
push 0
mov eax, dword [eax + 4]
and dword [ebp + eax - 0xb0], 0xfffffffe
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [ebp + 0x4c], ecx
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp + 4], ecx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x40e0c9
push ecx
push eax
lea ecx, [ebp + 0x30]
lfence
call fcn.00410820
mov esi, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x40], esi
push 0
push eax
push edi
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, ds:[ebp - 0xb4]
call fcn.0040d7a0
test eax, eax
jne 0x40e106
mov eax, dword ds:[ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0040c700
mov eax, esi
sub eax, edi
cmp eax, 0x100
jb 0x40e362
cmp byte [edi], 0x4d
jne 0x40e47e
cmp byte [edi + 1], 0x41
jne 0x40e47e
cmp byte [edi + 2], 0x4d
jne 0x40e47e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46a29c]
cmp eax, dword [ecx + 4]
jle 0x40e19f
push 0x46a29c
call fcn.00444b9f
add esp, 4
cmp dword [0x46a29c], 0xffffffff
jne 0x40e19f
push str.RtlGetCompressionWorkSpaceSize
push str.ntdll.dll
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46a29c
mov dword [0x46a2a4], eax
call fcn.00444b4e
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46a2a8]
cmp eax, dword [ecx + 4]
jle 0x40e1f8
push 0x46a2a8
call fcn.00444b9f
add esp, 4
cmp dword [0x46a2a8], 0xffffffff
jne 0x40e1f8
push str.RtlDecompressBufferEx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46a2a8
mov dword [0x46a2a0], eax
call fcn.00444b4e
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp + 0x48], eax
mov eax, ecx
and eax, 0xffffff
mov dword [ebp + 0x44], ecx
cmp eax, 0x4d414d
je 0x40e263
test edi, edi
je 0x40e248
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x40e23c
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e38e
push ebx
push edi
call fcn.00444ae8
add esp, 8
mov esi, dword [ebp + 0x50]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x54]
pop ebp
ret 4
lea eax, [edi + 8]
cmp edi, eax
je 0x40e282
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp + 0x44]
add esp, 0xc
add esi, edi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x34], esi
cmp ecx, 0x10000000
jae 0x40e211
mov esi, dword [0x46a2a4]
shr ecx, 0x18
and ecx, 0xf
mov dword [ebp + 0x2c], 0
movzx eax, cx
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp + 0x2c]
mov dword [ebp + 0x28], 0
push ecx
push eax
mov ecx, esi
mov dword [ebp + 0x24], eax
call dword [0x44b694]
call esi
nop dword [eax]
test eax, eax
jne 0x40e211
xor esi, esi
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], esi
test eax, eax
je 0x40e31c
cmp eax, 0x7fffffff
ja 0x40e4ed
push eax
lea ecx, [ebp + 0x18]
lfence
call fcn.00410600
push dword [ebp + 0x48]
push esi
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebp + 0x3c], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x48]
add esp, 0xc
add eax, esi
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x4c], eax
mov byte [ebp - 4], 3
push dword [ebp + 0x2c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp + 0x44], eax
test eax, eax
jne 0x40e394
test esi, esi
je 0x40e362
mov ecx, dword ds:[ebp + 0x4c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40e358
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e38e
push ecx
push esi
call fcn.00444ae8
add esp, 8
test edi, edi
je 0x40e248
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x40e23c
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e23c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [0x46a2a0]
mov ecx, esi
push eax
lea eax, [ebp + 4]
push eax
mov eax, dword [ebp + 0x40]
sub eax, edi
push eax
push edi
push dword [ebp + 0x48]
push dword [ebp + 0x3c]
push dword [ebp + 0x24]
call dword [0x44b694]
call esi
push dword ds:[ebp + 0x44]
test eax, eax
je 0x40e42f
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp + 0x3c]
add esp, 4
test ecx, ecx
je 0x40e402
mov edx, dword ds:[ebp + 0x4c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40e3f8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e46c
push edx
push ecx
call fcn.00444ae8
add esp, 8
test edi, edi
je 0x40e248
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x40e23c
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e46c
jmp 0x40e23c
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp + 0x50]
lea eax, [ebp + 0x18]
add esp, 4
mov ecx, esi
push eax
call fcn.00410000
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x40e4b0
mov edx, dword [ebp + 0x20]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40e472
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e472
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00444ae8
add esp, 8
jmp 0x40e4b0
cmp byte [edi + 4], 0x53
jne 0x40e4ad
cmp byte [edi + 5], 0x43
jne 0x40e4ad
cmp byte [edi + 6], 0x43
jne 0x40e4ad
cmp byte [edi + 7], 0x41
mov esi, dword [ebp + 0x50]
jne 0x40e4b0
lea eax, ds:[ebp + 0x30]
mov ecx, esi
push eax
call fcn.00410000
mov ebx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x30]
jmp 0x40e4b0
mov esi, dword [ebp + 0x50]
test edi, edi
je 0x40e24b
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x40e4de
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e4de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.00444ae8
add esp, 8
jmp 0x40e24b
call fcn.0040ac40
int3