Function at 0x4038f0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov edx, ecx
mov dword [ebp - 0x14], edx
push esi
push edi
test edx, edx
je case.0x403980.1
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 8], ecx
test ecx, ecx
je case.0x403980.1
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x403980.1
mov edi, dword [edx]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x403934
cmp dword [edx + 4], edi
jne case.0x403980.1
mov eax, dword [ecx]
cmp eax, 0xb
jne 0x403946
mov dword [ecx], 0xc
mov eax, 0xc
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 4]
mov edx, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
xor edi, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x40], ebx
cmp eax, 0x1d
ja case.0x403980.1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x1f
nop dword [eax]
jmp dword [eax*4 + 0x404818]
cmp dword [ecx + 8], 0
jne 0x403998
mov dword [ecx], 0xc
jmp 0x4046f2
cmp esi, 0x10
jae 0x4039c4
nop dword [eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4039a0
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [ebp - 0x38]
test edx, edx
mov edx, dword [ebp - 4]
je 0x4039ec
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401f88
jmp 0x4046e9
mov ecx, dword [ebp - 8]
mov eax, edx
and al, 0xf
cmp al, 8
je 0x403a06
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401fa0
jmp 0x4046ec
shr edx, 4
sub esi, 4
mov eax, edx
mov dword [ebp - 4], edx
and eax, 0xf
add eax, 8
mov dword [ebp - 0x34], eax
cmp eax, dword [ecx + 0x24]
jbe 0x403a2e
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401fbc
jmp 0x4046ec
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
shr edx, 8
not edx
and edx, 2
or edx, 9
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx], edx
xor edx, edx
mov dword [ecx + 0x18], 1
xor esi, esi
mov dword [ebp - 4], edx
mov dword [eax + 0x30], 1
jmp 0x4046f2
cmp esi, 0x20
jae 0x403a94
nop dword [eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x403a70
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
shr edx, 0x18
add eax, ecx
mov ecx, dword [ebp - 8]
add eax, edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov dword [edx + 0x30], eax
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ecx], 0xa
cmp dword [ecx + 0xc], 0
je 0x40470c
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x18], 1
mov dword [ecx], 0xb
mov dword [eax + 0x30], 1
cmp dword [ecx + 4], 0
je 0x403b11
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ecx], 0x18
jmp 0x4046f2
cmp esi, 3
jae 0x403b3d
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb case.default.0x403b4c
mov ecx, dword [ebp - 8]
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ecx + 4], eax
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x404890]
shr edx, 2
sub esi, 3
mov dword [ecx], 0xd
mov dword [ebp - 4], edx
jmp 0x4046f2
shr edx, 2
sub esi, 3
mov dword [ecx + 0x4c], 0x4015e0
mov dword [ecx + 0x54], 9
mov dword [ecx + 0x50], 0x401de0
mov dword [ecx + 0x58], 5
mov dword [ecx], 0x12
mov dword [ebp - 4], edx
jmp 0x4046f2
shr edx, 2
sub esi, 3
mov dword [ecx], 0xf
mov dword [ebp - 4], edx
jmp 0x4046f2
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], 0x401fd0
shr edx, 2
sub esi, 3
mov dword [ebp - 4], edx
jmp 0x4046f2
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
cmp esi, 0x20
jae 0x403c04
nop word [eax + eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x403be0
mov eax, edx
movzx ecx, dx
not eax
mov dword [ebp - 0x34], ecx
shr eax, 0x10
cmp ecx, eax
mov ecx, dword [ebp - 8]
je 0x403c27
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401fe4
jmp 0x4046ec
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ecx + 0x40], eax
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ecx], 0xe
cmp dword [ecx + 0x40], 0
je 0x404324
cmp dword [ecx + 0x40], ebx
mov eax, ebx
mov edi, dword [ebp - 0x18]
cmovbe eax, dword [ecx + 0x40]
cmp eax, edi
cmovbe edi, eax
mov eax, edi
mov dword [ebp - 0x24], edi
test eax, eax
je 0x404759
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
sub edi, ecx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub ebx, 1
jne 0x403c70
mov edi, dword [ebp - 0x10]
add edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x24]
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x24]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ecx + 0x40], eax
jmp 0x4046f2
cmp esi, 0xe
jae 0x403ce4
nop dword [eax + eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0xe
jb 0x403cc0
mov eax, dword [ebp - 8]
mov ecx, edx
shr edx, 5
and ecx, 0x1f
mov edi, edx
add ecx, 0x101
and edi, 0x1f
shr edx, 5
inc edi
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], edi
sub esi, 0xe
mov dword [ebp - 0x34], edi
mov eax, edx
mov edi, dword [ebp - 8]
and eax, 0xf
add eax, 4
shr edx, 4
mov dword [ebp - 4], edx
mov dword [edi + 0x5c], eax
mov edi, dword [ebp - 0x10]
cmp ecx, 0x11e
ja 0x403e1e
cmp dword [ebp - 0x34], 0x1e
ja 0x403e1e
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x68], 0
mov dword [ecx], 0x10
mov eax, dword [ecx + 0x68]
cmp eax, dword [ecx + 0x5c]
jae 0x403dad
nop
cmp esi, 3
jae 0x403d79
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb 0x403d55
mov eax, dword [ebp - 8]
mov ecx, edx
mov edi, dword [ebp - 8]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x68]
movzx eax, word [eax*2 + 0x401e60]
mov word [edi + eax*2 + 0x70], cx
mov ecx, edi
mov edi, dword [ebp - 0x10]
inc dword [ecx + 0x68]
mov eax, dword [ecx + 0x68]
cmp eax, dword [ecx + 0x5c]
jb 0x403d50
cmp eax, 0x13
jae 0x403dcd
mov eax, dword [ecx + 0x68]
xor edx, edx
movzx eax, word [eax*2 + 0x401e60]
mov word [ecx + eax*2 + 0x70], dx
inc dword [ecx + 0x68]
cmp dword [ecx + 0x68], 0x13
jb 0x403db2
lea eax, [ecx + 0x530]
mov dword [ecx + 0x54], 7
lea edx, [ecx + 0x6c]
mov dword [ecx + 0x4c], eax
mov dword [edx], eax
add ecx, 0x54
mov eax, dword [ebp - 8]
add eax, 0x2f0
push eax
push ecx
push edx
mov edx, dword [ebp - 8]
xor ecx, ecx
push 0x13
lea edx, [edx + 0x70]
call fcn.00404b90
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x403e2d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402028
jmp 0x4046ec
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402004
jmp 0x4046e9
mov dword [ecx + 0x68], 0
mov dword [ecx], 0x11
mov dword [ebp - 0x2c], 0x11
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x60]
cmp dword [ecx + 0x68], eax
jae 0x4040ca
mov ecx, dword [ecx + 0x54]
mov eax, 1
shl eax, cl
lea ecx, [eax - 1]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x30], eax
mov eax, ecx
mov ecx, dword [ebp - 0x30]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
shr dword [ebp - 0x24], 0x10
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, esi
jbe 0x403ed3
nop dword [eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x30]
add edx, eax
mov eax, dword [ebp - 0x3c]
inc edi
and eax, edx
mov dword [ebp - 0xc], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
shr dword [ebp - 0x24], 0x10
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, esi
ja 0x403e90
mov ecx, dword [ebp - 0x24]
movzx ecx, cx
mov dword [ebp - 0x3c], ecx
movzx ecx, cx
cmp ecx, 0x10
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
jae 0x403f42
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x403f16
test ebx, ebx
je 0x404759
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x3c]
jb 0x403ef1
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx ecx, ah
mov eax, dword [ebp - 8]
sub esi, ecx
shr edx, cl
mov dword [ebp - 4], edx
mov ecx, dword [eax + 0x68]
mov ax, word [ebp - 0x32]
mov word [edi + ecx*2 + 0x70], ax
mov ecx, edi
inc dword [ecx + 0x68]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x30], eax
jmp 0x40409f
jne 0x403fb0
add ecx, 2
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x403f75
nop
test ebx, ebx
je 0x404759
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x3c]
jb 0x403f50
mov edx, dword [ebp - 4]
movzx ecx, ah
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x68], 0
je 0x4040bb
mov eax, dword [ebp - 8]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
sub esi, 2
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 0x68]
movzx ecx, word [eax + ecx*2 + 0x6e]
mov dword [ebp - 0x24], ecx
jmp 0x40405b
cmp word [ebp - 0x3c], 0x11
jne 0x404000
add ecx, 3
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x403fe6
test ebx, ebx
je 0x404759
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x3c]
jb 0x403fc1
mov edx, dword [ebp - 4]
movzx ecx, ah
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
mov dword [ebp - 0x2c], eax
mov eax, 0xfffffffd
jmp 0x40404d
add ecx, 7
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x404035
nop word [eax + eax]
test ebx, ebx
je 0x404759
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x3c]
jb 0x404010
mov edx, dword [ebp - 4]
movzx ecx, ah
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
mov dword [ebp - 0x2c], eax
mov eax, 0xfffffff9
sub eax, ecx
mov dword [ebp - 0x24], 0
add esi, eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x64]
add ecx, dword [ebp - 0x2c]
add eax, dword [ebx + 0x60]
mov ebx, dword [ebp - 0xc]
cmp ecx, eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
ja 0x4040bb
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
nop dword [eax]
mov eax, dword [ecx + 0x68]
mov word [ecx + eax*2 + 0x70], dx
mov ebx, dword [ecx + 0x68]
lea ebx, [ebx + 1]
mov dword [ebp - 0x30], ebx
mov dword [ecx + 0x68], ebx
sub edi, 1
jne 0x404080
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x60]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x64]
add eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
jb 0x403e50
mov eax, dword [ecx]
jmp 0x4040cd
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402044
jmp 0x4046ec
mov eax, dword [ebp - 0x2c]
cmp eax, 0x1b
je 0x4046f2
lea edx, [ecx + 0x6c]
mov dword [ecx + 0x54], 9
lea eax, [ecx + 0x530]
mov dword [ebp - 0x3c], edx
lea edi, [ecx + 0x2f0]
mov dword [edx], eax
mov dword [ecx + 0x4c], eax
lea eax, [ecx + 0x54]
push edi
push eax
push edx
push dword [ecx + 0x60]
lea edx, [ecx + 0x70]
mov dword [ebp - 0x34], edi
mov ecx, 1
call fcn.00404b90
mov edi, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40412f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax + 0x18], 0x402060
jmp 0x4046ec
mov edx, dword [ebp - 0x3c]
push dword [ebp - 0x34]
mov dword [ecx + 0x58], 6
mov eax, dword [edx]
mov dword [ecx + 0x50], eax
lea eax, [ecx + 0x58]
push eax
mov eax, dword [ecx + 0x60]
push edx
push dword [ecx + 0x64]
add ecx, 0x70
lea edx, [ecx + eax*2]
mov ecx, 2
call fcn.00404b90
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40417b
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x40207c
jmp 0x4046ec
mov dword [ecx], 0x12
cmp ebx, 6
jb 0x4041e2
cmp dword [ebp - 0x18], 0x102
jb 0x4041e2
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov eax, edi
mov edi, dword [ebp - 0x18]
mov dword [ecx + 0x3c], esi
mov dword [eax + 4], ebx
mov ebx, eax
mov dword [eax + 0x10], edi
mov ecx, ebx
mov edi, dword [ebp - 0x10]
mov dword [eax], edi
call fcn.00405060
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx + 4]
mov edx, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
jmp 0x4046f2
mov ecx, dword [ecx + 0x54]
mov eax, 1
shl eax, cl
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x34]
and eax, edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x404246
nop dword [eax]
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x2c]
add edx, eax
mov eax, dword [ebp - 0x34]
inc edi
and eax, edx
mov dword [ebp - 0xc], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x404210
test al, al
je 0x4042f1
test al, 0xf0
jne 0x4042f1
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [ebp - 0x24], edx
and edi, dword [ebp - 4]
shr edi, cl
mov ecx, dword [ebp - 0x2c]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x4042e4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40475c
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x404290
mov ebx, dword [ebp - 0xc]
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 4], edx
shr ecx, 0x10
mov dword [edi + 0x40], ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
test al, al
jne 0x404320
mov dword [ecx], 0x17
jmp 0x4046f2
test al, 0x20
je 0x40432f
mov dword [ecx], 0xb
jmp 0x4046f2
test al, 0x40
je 0x404342
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402094
jmp 0x4046ec
movzx eax, al
and eax, 0xf
mov dword [ecx], 0x13
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4043a4
cmp esi, eax
jae 0x404384
nop
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x2c]
jb 0x404360
mov ecx, dword [ebp - 0x2c]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
dec eax
and eax, edx
add dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0x2c]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ecx], 0x14
mov ecx, dword [ecx + 0x58]
mov eax, 1
shl eax, cl
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
mov eax, dword [ebp - 0x34]
and eax, edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x40440b
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x2c]
add edx, eax
mov eax, dword [ebp - 0x34]
inc edi
and eax, edx
mov dword [ebp - 0xc], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4043d5
test al, 0xf0
jne 0x4044ae
mov ecx, eax
mov edi, 1
shr ecx, 8
mov edx, eax
movzx ebx, cl
movzx ecx, al
add ecx, ebx
shr eax, 0x10
shl edi, cl
mov ecx, ebx
dec edi
mov dword [ebp - 0x24], edx
and edi, dword [ebp - 4]
shr edi, cl
mov ecx, dword [ebp - 0x2c]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
jbe 0x4044a4
nop dword [eax]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40475c
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x22]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x404450
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
test al, 0x40
je 0x4044d6
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 0x18], 0x4020b0
jmp 0x4046e9
mov ebx, dword [ebp - 8]
mov ecx, eax
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ecx + 0x48], eax
mov dword [ecx], 0x15
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x404547
cmp esi, eax
jae 0x404527
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x2c]
jb 0x404503
mov ecx, dword [ebp - 0x2c]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
dec eax
and eax, edx
add dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0x2c]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x2c]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
cmp dword [ecx + 0x44], eax
jbe 0x404567
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x4020c8
jmp 0x4046ec
mov dword [ecx], 0x16
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404759
mov edi, dword [ebp - 0x20]
sub edi, eax
mov eax, dword [ecx + 0x44]
cmp eax, edi
jbe 0x4045b6
sub eax, edi
mov edi, dword [ecx + 0x30]
cmp eax, edi
jbe 0x404599
mov ebx, dword [ecx + 0x28]
sub eax, edi
sub ebx, eax
add ebx, dword [ecx + 0x34]
jmp 0x4045a0
mov ebx, dword [ecx + 0x34]
sub ebx, eax
add ebx, edi
mov edi, dword [ecx + 0x40]
cmp eax, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
cmovbe edi, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
jmp 0x4045c1
mov ebx, dword [ebp - 0x1c]
sub ebx, eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x18]
mov edx, edi
cmp dword [ebp - 0x2c], edx
cmovbe edi, dword [ebp - 0x2c]
sub edx, edi
sub eax, edi
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x1c]
sub ebx, edx
mov dword [ecx + 0x40], eax
nop dword [eax]
mov al, byte [ebx + edx]
mov byte [edx], al
inc edx
sub edi, 1
jne 0x4045e0
cmp dword [ecx + 0x40], 0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 4]
jne 0x4046f2
mov dword [ecx], 0x12
jmp 0x4046f2
cmp dword [ebp - 0x18], 0
je 0x404759
mov edx, dword [ebp - 0x1c]
mov al, byte [ecx + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x18]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov dword [ecx], 0x12
jmp 0x4046f2
cmp dword [ecx + 8], 0
je 0x404743
cmp esi, 0x20
jae 0x404668
test ebx, ebx
je 0x404759
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 0xc], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x404641
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
add dword [eax + 0x14], ebx
mov eax, ebx
add dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x18]
mov ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x4046af
mov edx, dword [ebp - 0x1c]
push ecx
sub edx, ecx
mov ecx, eax
call fcn.00404910
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 8]
add esp, 4
mov dword [ebp - 0x34], ecx
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x18]
mov ecx, edx
mov dword [ebp - 0x20], eax
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [ebp - 0x34]
je 0x404737
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x4020e8
mov ecx, dword [ebp - 8]
mov dword [ecx], 0x1b
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
cmp eax, 0x1d
jbe switch.0x00403980
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebx
mov eax, 2
mov dword [ecx + 0x3c], esi
pop esi
mov dword [ecx + 0x38], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ecx], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x404759
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edi + 0xc], ecx
cmp dword [ebx + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x3c], esi
mov esi, dword [ebp - 0x20]
mov dword [edi + 0x10], edx
mov dword [edi], ecx
mov dword [ebx + 0x38], eax
jne 0x404791
cmp dword [ebx], 0x18
jge 0x4047b0
cmp esi, edx
je 0x4047b0
mov edx, esi
mov ecx, edi
call fcn.004034e0
test eax, eax
je 0x4047b0
mov dword [ebx], 0x1c
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40]
sub esi, dword [edi + 0x10]
sub eax, dword [edi + 4]
add dword [edi + 8], eax
add dword [edi + 0x14], esi
add dword [ebx + 0x1c], esi
cmp dword [ebx + 8], 0
je 0x4047e3
test esi, esi
je 0x4047e3
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x18]
sub edx, esi
push esi
call fcn.00404910
add esp, 4
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov edx, dword [ebx + 4]
mov eax, pe_nt_image_headers32
neg edx
sbb edx, edx
xor ecx, ecx
and edx, 0x40
cmp dword [ebx], 0xb
cmove ecx, eax
mov eax, dword [ebp - 0x28]
add edx, ecx
mov ecx, 0xfffffffb
add edx, dword [ebx + 0x3c]
test eax, eax
mov dword [edi + 0x2c], edx
pop edi
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret