Function at 0x1c017200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1c02c20b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1c03c020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jne 0x1c017359
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [ebp + 0x10], edi
jbe 0x1c017330
mov dword [esp + 0x14], edi
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], edi
cmp esi, edi
je 0x1c01727a
lea ecx, [esi + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
jmp 0x1c01727c
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov byte [esi], 0xff
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], esi
cmp dword [esp + 0x10], eax
jb 0x1c0172b6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
add ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov edi, dword [ebx + 0x30]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1c0172d5
xor ecx, ecx
jmp 0x1c0172dd
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [edi + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x1c0172f5
mov dword [ebx], esi
add ebx, 4
mov dword [edi + 0x10], ebx
jmp 0x1c017314
cmp eax, ebx
jbe 0x1c0172ff
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push ebx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov eax, edi
call fcn.1c016d00
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], 0x1c
mov ebx, dword [ebp + 8]
inc eax
xor edi, edi
mov dword [esp + 0x10], eax
cmp eax, dword [ebp + 0x10]
jb 0x1c017257
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebx + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const__]
mov ecx, ebx
call sym.HncBM90.dll_private:_int___thiscall_CHncZIP::_Compress_void_
cmp eax, edi
jne 0x1c01735b
mov ebx, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
test ecx, 0xfffffffc
je 0x1c01735b
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10