Function at 0x403b40
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.0x403bd0.1
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 8], ecx
test ecx, ecx
je case.0x403bd0.1
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x403bd0.1
mov edi, dword [edx]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x403b84
cmp dword [edx + 4], edi
jne case.0x403bd0.1
mov eax, dword [ecx]
cmp eax, 0xb
jne 0x403b96
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.0x403bd0.1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x1f
nop dword [eax]
jmp dword [eax*4 + 0x404a68]
cmp dword [ecx + 8], 0
jne 0x403be8
mov dword [ecx], 0xc
jmp 0x404942
cmp esi, 0x10
jae 0x403c14
nop dword [eax]
test ebx, ebx
je 0x4049a9
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 0x403bf0
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 0x403c3c
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401fd8
jmp 0x404939
mov ecx, dword [ebp - 8]
mov eax, edx
and al, 0xf
cmp al, 8
je 0x403c56
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x401ff0
jmp 0x40493c
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 0x403c7e
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x40200c
jmp 0x40493c
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 0x404942
cmp esi, 0x20
jae 0x403ce4
nop dword [eax]
test ebx, ebx
je 0x4049a9
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 0x403cc0
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 0x40495c
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 0x403d61
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 0x404942
cmp esi, 3
jae 0x403d8d
test ebx, ebx
je 0x4049a9
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.0x403d9c
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 + 0x404ae0]
shr edx, 2
sub esi, 3
mov dword [ecx], 0xd
mov dword [ebp - 4], edx
jmp 0x404942
shr edx, 2
sub esi, 3
mov dword [ecx + 0x4c], 0x401630
mov dword [ecx + 0x54], 9
mov dword [ecx + 0x50], 0x401e30
mov dword [ecx + 0x58], 5
mov dword [ecx], 0x12
mov dword [ebp - 4], edx
jmp 0x404942
shr edx, 2
sub esi, 3
mov dword [ecx], 0xf
mov dword [ebp - 4], edx
jmp 0x404942
mov eax, dword [ebp - 0x14]
mov dword [ecx], 0x1b
mov dword [eax + 0x18], 0x402020
shr edx, 2
sub esi, 3
mov dword [ebp - 4], edx
jmp 0x404942
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
cmp esi, 0x20
jae 0x403e54
nop word [eax + eax]
test ebx, ebx
je 0x4049a9
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 0x403e30
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 0x403e77
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402034
jmp 0x40493c
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 0x404574
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 0x4049a9
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 0x403ec0
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 0x404942
cmp esi, 0xe
jae 0x403f34
nop dword [eax + eax]
test ebx, ebx
je 0x4049a9
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 0x403f10
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 0x40406e
cmp dword [ebp - 0x34], 0x1e
ja 0x40406e
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 0x403ffd
nop
cmp esi, 3
jae 0x403fc9
test ebx, ebx
je 0x4049a9
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 0x403fa5
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 + 0x401eb0]
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 0x403fa0
cmp eax, 0x13
jae 0x40401d
mov eax, dword [ecx + 0x68]
xor edx, edx
movzx eax, word [eax*2 + 0x401eb0]
mov word [ecx + eax*2 + 0x70], dx
inc dword [ecx + 0x68]
cmp dword [ecx + 0x68], 0x13
jb 0x404002
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.00404de0
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40407d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402078
jmp 0x40493c
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402054
jmp 0x404939
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 0x40431a
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 0x404123
nop dword [eax]
test ebx, ebx
je 0x4049a9
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 0x4040e0
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 0x404192
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x404166
test ebx, ebx
je 0x4049a9
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 0x404141
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 0x4042ef
jne 0x404200
add ecx, 2
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x4041c5
nop
test ebx, ebx
je 0x4049a9
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 0x4041a0
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 0x40430b
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 0x4042ab
cmp word [ebp - 0x3c], 0x11
jne 0x404250
add ecx, 3
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x404236
test ebx, ebx
je 0x4049a9
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 0x404211
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 0x40429d
add ecx, 7
mov dword [ebp - 0x3c], ecx
cmp esi, ecx
jae 0x404285
nop word [eax + eax]
test ebx, ebx
je 0x4049a9
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 0x404260
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 0x40430b
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 0x4042d0
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 0x4040a0
mov eax, dword [ecx]
jmp 0x40431d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402094
jmp 0x40493c
mov eax, dword [ebp - 0x2c]
cmp eax, 0x1b
je 0x404942
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.00404de0
mov edi, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40437f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax + 0x18], 0x4020b0
jmp 0x40493c
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.00404de0
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4043cb
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x4020cc
jmp 0x40493c
mov dword [ecx], 0x12
cmp ebx, 6
jb 0x404432
cmp dword [ebp - 0x18], 0x102
jb 0x404432
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.004052b0
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 0x404942
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 0x404496
nop dword [eax]
test ebx, ebx
je 0x4049a9
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 0x404460
test al, al
je 0x404541
test al, 0xf0
jne 0x404541
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 0x404534
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4049ac
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 0x4044e0
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 0x404570
mov dword [ecx], 0x17
jmp 0x404942
test al, 0x20
je 0x40457f
mov dword [ecx], 0xb
jmp 0x404942
test al, 0x40
je 0x404592
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x4020e4
jmp 0x40493c
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 0x4045f4
cmp esi, eax
jae 0x4045d4
nop
test ebx, ebx
je 0x4049a9
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 0x4045b0
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 0x40465b
test ebx, ebx
je 0x4049a9
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 0x404625
test al, 0xf0
jne 0x4046fe
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 0x4046f4
nop dword [eax]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4049ac
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 0x4046a0
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 0x404726
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 0x18], 0x402100
jmp 0x404939
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 0x404797
cmp esi, eax
jae 0x404777
test ebx, ebx
je 0x4049a9
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 0x404753
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 0x4047b7
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402118
jmp 0x40493c
mov dword [ecx], 0x16
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4049a9
mov edi, dword [ebp - 0x20]
sub edi, eax
mov eax, dword [ecx + 0x44]
cmp eax, edi
jbe 0x404806
sub eax, edi
mov edi, dword [ecx + 0x30]
cmp eax, edi
jbe 0x4047e9
mov ebx, dword [ecx + 0x28]
sub eax, edi
sub ebx, eax
add ebx, dword [ecx + 0x34]
jmp 0x4047f0
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 0x404811
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 0x404830
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 0x404942
mov dword [ecx], 0x12
jmp 0x404942
cmp dword [ebp - 0x18], 0
je 0x4049a9
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 0x404942
cmp dword [ecx + 8], 0
je 0x404993
cmp esi, 0x20
jae 0x4048b8
test ebx, ebx
je 0x4049a9
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 0x404891
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 0x4048ff
mov edx, dword [ebp - 0x1c]
push ecx
sub edx, ecx
mov ecx, eax
call fcn.00404b60
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 0x404987
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x402138
mov ecx, dword [ebp - 8]
mov dword [ecx], 0x1b
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
cmp eax, 0x1d
jbe switch.0x00403bd0
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 0x4049a9
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 0x4049e1
cmp dword [ebx], 0x18
jge 0x404a00
cmp esi, edx
je 0x404a00
mov edx, esi
mov ecx, edi
call fcn.00403730
test eax, eax
je 0x404a00
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 0x404a33
test esi, esi
je 0x404a33
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x18]
sub edx, esi
push esi
call fcn.00404b60
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