Function at 0x4512a0
Capabilities:
Get number of processors
Get process heap force flags
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0xd4
push 0xffffffffffffffff
push 0x51435d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x56fcd4]
xor eax, ebp
mov dword [ebp + 0xd0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xdc]
lea ecx, [ebp]
push 2
push 0
push esi
call fcn.00421db0
push 0
push 1
lea eax, [esi + 0x30]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 0x50]
call fcn.00421db0
movzx eax, word [esi + 0x28]
lea ecx, [ebp + 0x50]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push 2
push eax
mov byte [ebp - 4], 1
call fcn.00450be0
cmp dword [esi + 0x2c], 0x10
lea ecx, [esi + 0x18]
mov dword [ebp - 0x50], ecx
mov eax, ecx
jb 0x451330
mov eax, dword [ecx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 0x28]
lea ecx, [ebp + 0x50]
push eax
call fcn.00450be0
push 0x100023
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.004deddf
add esp, 4
test eax, eax
je 0x451822
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x100000
push 0
push edi
lea ebx, [edi + 0x100000]
mov dword [ebp - 0x1c], edi
mov dword [edi - 4], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], ebx
call fcn.004e1450
mov dword [ebp - 0x3c], ebx
push 0x100023
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004deddf
add esp, 0x10
test eax, eax
je 0x451822
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
push 0x100000
push 0
push ebx
mov dword [ebx - 4], eax
lea eax, [ebx + 0x100000]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.004e1450
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
call fcn.00457a90
mov dword [ebp - 0x10], eax
test eax, eax
je 0x451827
push dword [esi + 0x48]
push 0x64
push eax
call fcn.004543b0
mov esi, eax
push esi
call fcn.00453380
add esp, 0x10
test eax, eax
je 0x45145d
push str._ZSTD_isError_err_
push 0x28
push str.C:UsersMichaelCLionProjects_tools_tunnelcmusenderzstd_ex.h
push str._s:_d_CHECK__s__failed:
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
push esi
call fcn.00453360
push 2
mov esi, eax
call fcn.004ef2bd
push esi
push 0x51a628
push eax
call fcn.004519b0
add esp, 0x28
jmp 0x451863
push 1
push 0xc9
push dword [ebp - 0x10]
call fcn.004543b0
mov esi, eax
push esi
call fcn.00453380
add esp, 0x10
test eax, eax
je 0x4514bf
push str._ZSTD_isError_err_
push 0x29
push str.C:UsersMichaelCLionProjects_tools_tunnelcmusenderzstd_ex.h
push str._s:_d_CHECK__s__failed:
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
push esi
call fcn.00453360
push 2
mov esi, eax
call fcn.004ef2bd
push esi
push 0x51a628
push eax
call fcn.004519b0
add esp, 0x28
jmp 0x451863
push 0x10
push 0x190
push dword [ebp - 0x10]
call fcn.004543b0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, dword [ebp]
je 0x4517e5
lea eax, [ebp + 0x20]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x20]
push eax
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x4518d3
cmp dword [ebp + 0x4c], 0x7fffffff
je 0x4518da
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x100000
push edi
push dword [ebp + 0x1c]
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4517a8
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x20]
push eax
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 3
call fcn.004dd29d
add esp, 4
mov dword [ebp - 0x5c], edi
cmp esi, 0x100000
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0
sbb eax, eax
and eax, 2
mov dword [ebp - 0x4c], eax
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x68], ebx
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 0x100000
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x60], 0
call fcn.00456530
mov edi, eax
push edi
call fcn.00453380
add esp, 0x14
test eax, eax
jne 0x451764
mov eax, dword [ebp + 0x6c]
mov esi, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x50]
je 0x451727
lea eax, [ebp + 0x70]
push eax
mov dword [ebp - 0x70], eax
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x4518d3
cmp dword [ebp + 0x9c], 0x7fffffff
je 0x4518c2
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push dword [ebp + 0x6c]
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x18]
jne 0x451882
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.004dd29d
mov esi, dword [ebp - 0x48]
add esp, 4
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
cmp esi, 0x100000
jae 0x45160a
xor eax, eax
test edi, edi
jmp 0x45160e
xor eax, eax
cmp ecx, edx
sete al
test eax, eax
mov eax, dword [ebp - 0x4c]
je 0x451558
cmp ecx, edx
jne 0x4516f9
cmp esi, 0x100000
jb 0x451640
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp]
je 0x4517e5
mov edi, dword [ebp - 0x1c]
jmp 0x4514e3
mov esi, dword [ebp - 0x50]
cmp dword [esi + 0x14], 0x10
jb 0x45164b
mov esi, dword [esi]
push 2
call fcn.004ef2bd
push esi
push str.Finishing_compression_of__s_n
push eax
call fcn.004519b0
push dword [ebp - 0x10]
call fcn.00458ce0
mov edx, dword [ebp - 0x20]
add esp, 0x14
sub edx, ebx
cmp edx, 0x1000
jb 0x45168c
mov ecx, dword [ebx - 4]
add edx, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x451822
mov ebx, ecx
push edx
push ebx
call fcn.004dee43
mov edx, dword [ebp - 0x38]
add esp, 8
mov eax, dword [ebp - 0x1c]
sub edx, eax
cmp edx, 0x1000
jb 0x4516bc
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451822
mov eax, ecx
push edx
push eax
call fcn.004dee43
add esp, 8
lea ecx, [ebp + 0x50]
call fcn.004280a0
lea ecx, [ebp]
call fcn.004280a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd0]
xor ecx, ebp
call fcn.004df28f
lea esp, [ebp + 0xd4]
pop ebp
ret
push str.input.pos__input.size
push 0x3e
push str.C:UsersMichaelCLionProjects_tools_tunnelcmusenderzstd_ex.h
push str._s:_d_CHECK__s__failed:
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
add esp, 0x14
push str.Impossible:_zstd_only_returns_0_when_the_input_is_completely_consumed_
jmp 0x451850
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0xa0]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0xb8]
mov byte [ebp - 4], 9
push str.File_not_opened.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 0xa
jmp 0x4518ab
push str._ZSTD_isError_err_
push 0x37
push str.C:UsersMichaelCLionProjects_tools_tunnelcmusenderzstd_ex.h
push str._s:_d_CHECK__s__failed:
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
push edi
call fcn.00453360
push 2
mov esi, eax
call fcn.004ef2bd
push esi
push 0x51a628
push eax
call fcn.004519b0
add esp, 0x28
jmp 0x451863
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0xa0]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0xb8]
mov byte [ebp - 4], 7
push str.Failed_to_read_from_file.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 8
jmp 0x4518ab
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp + 0xa0]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp + 0xb8]
mov byte [ebp - 4], 4
push str.File_not_opened.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 5
jmp 0x4518ab
call fcn.004eaaef
push str.cctx___nullptr
push 0x25
push str.C:UsersMichaelCLionProjects_tools_tunnelcmusenderzstd_ex.h
push str._s:_d_CHECK__s__failed:
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
add esp, 0x14
push str.ZSTD_createCCtx___failed_
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
add esp, 8
push 0x51a168
push 2
call fcn.004ef2bd
add esp, 4
push eax
call fcn.004519b0
add esp, 8
push 1
call fcn.004eafdb
lea eax, [ebp + 0xb8]
push eax
call fcn.0043d360
push eax
lea eax, [ebp + 0xa0]
mov byte [ebp - 4], 0x11
push str.Failed_to_write_to_file.
push eax
call fcn.00403560
add esp, 0x10
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x34]
call fcn.00424bb0
push 0x552298
lea eax, [ebp - 0x34]
push eax
call fcn.004e084f
push 6
mov dword [ebp + 0x9c], closesocket
call fcn.004dd640
push 5
call fcn.004dd640
push 6
mov dword [ebp + 0x4c], closesocket
call fcn.004dd640
int3