Function at 0x4240d0
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590c5d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or ebx, 0xffffffff
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x424158
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004020d0
push 0x21
push dword [eax]
mov dword [ebp - 4], 0
push esi
call fcn.004277f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], ebx
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424155
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompressBuffer
push eax
call esi
push str.RtlGetCompressionWorkSpaceSize
push dword [ebp - 0x10]
mov dword [edi], eax
call esi
push str.RtlDecompressBuffer
push dword [ebp - 0x10]
mov dword [edi + 4], eax
call esi
lea edx, [ebp - 0x18]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 0x18]
push edx
push ecx
push 2
mov dword [ebp - 0x18], 0
call eax
test eax, eax
je 0x4241e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004020d0
push 0x2d
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.004277f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4241e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [edi + 0x18]
push 0
call ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x42424c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004020d0
push 0x35
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.004277f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42424c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push 0x3000
push 0x5c00000
push 0
call ebx
mov dword [edi + 0x10], eax
test eax, eax
jne 0x4242ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004020d0
push 0x3c
push dword [eax]
mov dword [ebp - 4], 3
push esi
call fcn.004277f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4242ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
push 0x3000
push 0x6000000
push 0
call ebx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x424309
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004020d0
push 0x44
push dword [eax]
mov dword [ebp - 4], 4
push esi
call fcn.004277f0
mov edx, dword [ebp - 0x10]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424309
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret