Function at 0x516639
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
mov dword [esp], 0x4df40
call sym._malloc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp - 0x28], 0
jne 0x51667b
mov eax, 0
jmp 0x516a98
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x2c]
add eax, 1
imul eax, dword [ebp + 0x10]
cmp eax, 0x3f
jg 0x5166b5
mov dword [ebp - 0x18], 0x40
jmp 0x5166c4
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
imul eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x39
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x5166fd
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._free
mov eax, 0
jmp 0x516a98
mov dword [ebp - 0x54], 0x29
jmp 0x516729
lea eax, [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._tdefl_output_buffer_putter
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x516706
cmp dword [ebp + 0x1c], 0xa
jbe 0x51673f
mov dword [ebp - 0x1c], 0xa
jmp 0x516745
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0xbfbda0]
or ah, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], sym._tdefl_output_buffer_putter
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._tdefl_init
mov dword [ebp - 0x10], 0
jmp 0x5167e5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._tdefl_compress_buffer
cmp dword [ebp + 0x20], 0
je 0x5167af
mov eax, dword [ebp + 0x10]
sub eax, 1
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
jmp 0x5167b5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp - 0x2c]
mov ecx, edx
mov edx, dword [ebp + 8]
add edx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._tdefl_compress_buffer
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jl 0x516779
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._tdefl_compress_buffer
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
je 0x516839
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._free
mov eax, 0
jmp 0x516a98
mov eax, dword [ebp - 0x50]
lea edx, [eax - 0x29]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov byte [ebp - 0x7d], 0x89
mov byte [ebp - 0x7c], 0x50
mov byte [ebp - 0x7b], 0x4e
mov byte [ebp - 0x7a], 0x47
mov byte [ebp - 0x79], 0xd
mov byte [ebp - 0x78], 0xa
mov byte [ebp - 0x77], 0x1a
mov byte [ebp - 0x76], 0xa
mov byte [ebp - 0x75], 0
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x73], 0
mov byte [ebp - 0x72], 0xd
mov byte [ebp - 0x71], 0x49
mov byte [ebp - 0x70], 0x48
mov byte [ebp - 0x6f], 0x44
mov byte [ebp - 0x6e], 0x52
mov byte [ebp - 0x6d], 0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x6b], 0
mov byte [ebp - 0x6a], 0
mov byte [ebp - 0x69], 0
mov byte [ebp - 0x68], 0
mov byte [ebp - 0x67], 0
mov byte [ebp - 0x66], 0
mov byte [ebp - 0x65], 8
mov byte [ebp - 0x64], 0
mov byte [ebp - 0x63], 0
mov byte [ebp - 0x62], 0
mov byte [ebp - 0x61], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0
mov byte [ebp - 0x5e], 0
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0
mov byte [ebp - 0x5a], 0
mov byte [ebp - 0x59], 0
mov byte [ebp - 0x58], 0x49
mov byte [ebp - 0x57], 0x44
mov byte [ebp - 0x56], 0x41
mov byte [ebp - 0x55], 0x54
mov eax, dword [ebp + 0xc]
sar eax, 8
mov byte [ebp - 0x6b], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x6a], al
mov eax, dword [ebp + 0x10]
sar eax, 8
mov byte [ebp - 0x67], al
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x66], al
mov eax, dword [ebp + 0x14]
add eax, 0xbfbdd8
movzx eax, byte [eax]
mov byte [ebp - 0x64], al
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
shr eax, 0x18
mov byte [ebp - 0x5c], al
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
shr eax, 0x10
mov byte [ebp - 0x5b], al
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
shr eax, 8
mov byte [ebp - 0x5a], al
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov byte [ebp - 0x59], al
lea eax, [ebp - 0x7d]
add eax, 0xc
mov dword [esp + 8], 0x11
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._mz_crc32
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x51698a
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov edx, eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x1d]
lea eax, [ebp - 0x7d]
add eax, ecx
mov byte [eax], dl
add dword [ebp - 0xc], 1
shl dword [ebp - 0x14], 8
cmp dword [ebp - 0xc], 3
jle 0x51696d
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x7d]
mov dword [eax], edx
mov edx, dword [ebp - 0x79]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x75]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x71]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x6d]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x69]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x65]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x61]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x5d]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x59]
mov dword [eax + 0x24], edx
movzx edx, byte [ebp - 0x55]
mov byte [eax + 0x28], dl
lea eax, [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov dword [esp], 0x5b66d6
call sym._tdefl_output_buffer_putter
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x516a1f
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._free
mov eax, 0
jmp 0x516a98
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x48]
add eax, 0x25
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._mz_crc32
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x516a77
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov ebx, eax
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
add eax, ecx
sub eax, 0x10
add eax, edx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 0xc], 1
shl dword [ebp - 0x14], 8
cmp dword [ebp - 0xc], 3
jle 0x516a53
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea edx, [eax + 0x39]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 4]
leave
ret