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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test edi, edi
je case.0x10042c34.1
mov esi, dword [edi + 0x1c]
test esi, esi
je case.0x10042c34.1
mov ecx, dword [edi + 0xc]
test ecx, ecx
je case.0x10042c34.1
mov eax, dword [edi]
test eax, eax
jne 0x10042bff
cmp dword [edi + 4], eax
jne case.0x10042c34.1
cmp dword [esi], 0xb
jne 0x10042c0a
mov dword [esi], 0xc
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
jmp 0x1004372e
jmp dword [eax*4 + 0x1004384a]
cmp dword [esi + 8], 0
jne 0x10042c6c
mov dword [esi], 0xc
jmp 0x1004372e
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 0x10
jb 0x10042c4c
movzx eax, byte [ebp - 4]
mov ecx, dword [ebp - 4]
shl eax, 8
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x10043721
mov eax, dword [ebp - 4]
and al, 0xf
cmp al, 8
jne 0x10043721
shr dword [ebp - 4], 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
and ecx, 0xf
sub ebx, 4
add ecx, 8
test eax, eax
jne 0x10042cb8
mov dword [esi + 0x24], ecx
jmp 0x10042cc0
cmp ecx, eax
ja 0x10043721
xor eax, eax
inc eax
mov edx, eax
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 4]
shr eax, 8
not eax
shl edx, cl
and eax, 2
or eax, 9
xor ebx, ebx
mov dword [esi + 0x14], edx
mov dword [esi], eax
mov dword [ebp - 4], ebx
jmp 0x1004372e
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 0x20
jb 0x10042cea
mov eax, dword [ebp - 4]
mov edx, eax
mov ebx, eax
shl ebx, 0x10
mov ecx, 0xff00
and edx, ecx
add edx, ebx
mov ebx, eax
shr ebx, 8
shl edx, 8
and ebx, ecx
add edx, ebx
shr eax, 0x18
add eax, edx
xor ebx, ebx
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebp - 4], ebx
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x10043740
xor eax, eax
inc eax
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [esi], 0xb
cmp dword [esi + 4], 0
je 0x10042d98
mov ecx, ebx
and ecx, 7
shr dword [ebp - 4], cl
sub ebx, ecx
mov dword [esi], 0x1a
jmp 0x1004372e
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 3
jb 0x10042d78
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 1
and eax, 1
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
and eax, 3
sub eax, 0
je 0x10042df8
dec eax
je 0x10042dd4
dec eax
je 0x10042dcc
dec eax
jne 0x10042dfe
mov dword [edi + 0x18], 0x1004e591
mov dword [esi], 0x1d
jmp 0x10042dfe
mov dword [esi], 0x10
jmp 0x10042dfe
mov dword [esi + 0x4c], 0x1004a198
mov dword [esi + 0x54], 9
mov dword [esi + 0x50], 0x1004a998
mov dword [esi + 0x58], 5
mov dword [esi], 0x13
jmp 0x10042dfe
mov dword [esi], 0xd
shr dword [ebp - 4], 2
sub ebx, 3
jmp 0x1004372e
mov ecx, ebx
and ecx, 7
shr dword [ebp - 4], cl
sub ebx, ecx
jmp 0x10042e36
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 0x20
jb 0x10042e16
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
jne 0x10043721
xor ebx, ebx
mov dword [esi + 0x40], eax
mov dword [ebp - 4], ebx
mov dword [esi], 0xe
mov dword [esi], 0xf
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100433f4
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jbe 0x10042e80
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
jbe 0x10042e8b
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1004377f
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x20]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x14], eax
add esp, 0xc
sub dword [esi + 0x40], eax
jmp 0x1004372e
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 0xe
jb 0x10042ebd
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 5
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 5
and eax, 0x1f
inc eax
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 4
and eax, 0xf
add eax, 4
sub ebx, 0xe
cmp dword [esi + 0x60], 0x11e
mov dword [esi + 0x5c], eax
ja 0x10043721
cmp dword [esi + 0x64], 0x1e
ja 0x10043721
and dword [esi + 0x68], 0
mov dword [esi], 0x11
jmp case.0x10042c34.17
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 3
jb 0x10042f38
mov ecx, dword [esi + 0x68]
mov eax, dword [ebp - 4]
movzx ecx, word [ecx*2 + 0x1004aa18]
shr dword [ebp - 4], 3
and eax, 7
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
sub ebx, 3
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x5c]
jb 0x10042f58
jmp 0x10042f9c
mov eax, dword [esi + 0x68]
movzx eax, word [eax*2 + 0x1004aa18]
xor ecx, ecx
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
cmp dword [esi + 0x68], 0x13
jb 0x10042f87
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x70]
push eax
push 0
call fcn.1004543e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10043721
and dword [esi + 0x68], eax
mov dword [esi], 0x12
jmp case.0x10042c34.18
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
mov ecx, dword [esi + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x24], eax
cmp ecx, ebx
ja 0x10042feb
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x10
jae 0x10043084
mov ecx, eax
shr ecx, 8
movzx ecx, cl
jmp 0x10043064
cmp dword [ebp - 8], 0
je 0x1004377f
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, ebx
shl edx, cl
movzx ecx, ah
add dword [ebp - 4], edx
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, ecx
jb 0x10043041
movzx ecx, ah
shr dword [ebp - 4], cl
mov eax, dword [esi + 0x68]
sub ebx, ecx
mov cx, word [ebp - 0x22]
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
jmp case.0x10042c34.18
cmp word [ebp - 0x22], 0x10
jne 0x100430e6
movzx eax, ah
jmp 0x100430b0
cmp dword [ebp - 8], 0
je 0x1004377f
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, ebx
shl edx, cl
add dword [ebp - 4], edx
inc dword [ebp - 0xc]
add ebx, 8
lea ecx, [eax + 2]
cmp ebx, ecx
jb 0x10043090
mov ecx, eax
shr dword [ebp - 4], cl
sub ebx, eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10043721
movzx eax, word [esi + eax*2 + 0x6e]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 2
and eax, 3
add eax, 3
sub ebx, 2
jmp 0x10043173
cmp word [ebp - 0x22], 0x11
movzx edx, ah
jne 0x1004314f
jmp 0x10043112
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
lea eax, [edx + 3]
cmp ebx, eax
jb 0x100430f2
mov ecx, edx
shr dword [ebp - 4], cl
mov eax, dword [ebp - 4]
and eax, 7
add eax, 3
shr dword [ebp - 4], 3
push 0xfffffffffffffffd
jmp 0x1004316a
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
lea eax, [edx + 7]
cmp ebx, eax
jb 0x1004312f
mov ecx, edx
shr dword [ebp - 4], cl
mov eax, dword [ebp - 4]
and eax, 0x7f
add eax, 0xb
shr dword [ebp - 4], 7
push 0xfffffffffffffff9
and dword [ebp - 0x24], 0
pop ecx
sub ecx, edx
add ebx, ecx
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
add ecx, dword [esi + 0x60]
add edx, eax
cmp edx, ecx
ja 0x100431a9
test eax, eax
je case.0x10042c34.18
mov ecx, dword [esi + 0x68]
mov dx, word [ebp - 0x24]
mov word [esi + ecx*2 + 0x70], dx
inc dword [esi + 0x68]
dec eax
jne 0x10043186
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp dword [esi + 0x68], eax
jb 0x1004300b
jmp 0x100431b6
mov dword [edi + 0x18], 0x1004e591
mov dword [esi], 0x1d
cmp dword [esi], 0x1d
je 0x1004372e
cmp word [esi + 0x270], 0
je 0x10043721
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
push dword [esi + 0x60]
mov dword [eax], 9
lea eax, [esi + 0x70]
push eax
push 1
call fcn.1004543e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10043721
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
mov dword [esi + 0x50], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x58]
push eax
push ecx
push dword [esi + 0x64]
mov dword [eax], 6
mov eax, dword [esi + 0x60]
lea eax, [esi + eax*2 + 0x70]
push eax
push 2
call fcn.1004543e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10043721
mov dword [esi], 0x13
mov dword [esi], 0x14
cmp dword [ebp - 8], 6
jb 0x100432be
cmp dword [ebp - 0x10], 0x102
jb 0x100432be
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
push edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
call fcn.10045054
cmp dword [esi], 0xb
mov eax, dword [edi + 0xc]
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x38]
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x1004372e
or dword [esi + 0x1bc4], 0xffffffff
jmp 0x1004372e
mov ecx, dword [esi + 0x54]
and dword [esi + 0x1bc4], 0
mov eax, dword [esi + 0x4c]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
jmp 0x1004330b
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
mov ecx, dword [esi + 0x54]
add ebx, 8
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x100432d9
test al, al
je 0x100433bc
test al, 0xf0
jne 0x100433bc
mov dword [ebp - 0x1c], eax
shr dword [ebp - 0x1c], 8
movzx edx, byte [ebp - 0x1c]
mov dword [ebp - 0x24], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
shr eax, 0x10
dec edx
and edx, dword [ebp - 4]
shr edx, cl
add edx, eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x1c]
jmp 0x1004339f
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0x1f]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
movzx ecx, byte [ebp - 0x20]
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add ebx, 8
mov ecx, edx
dec eax
and eax, dword [ebp - 4]
shr eax, cl
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, ebx
ja 0x1004335c
movzx ecx, byte [ebp - 0x1f]
shr dword [ebp - 4], cl
sub ebx, ecx
mov dword [esi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
add dword [esi + 0x1bc4], ecx
sub ebx, ecx
mov dword [ebp - 0x24], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x40], ecx
test al, al
jne 0x100433e9
mov dword [esi], 0x19
jmp 0x1004372e
test al, 0x20
je 0x100433ff
or dword [esi + 0x1bc4], 0xffffffff
mov dword [esi], 0xb
jmp 0x1004372e
test al, 0x40
jne 0x10043721
movzx eax, al
and eax, 0xf
mov dword [esi + 0x48], eax
mov dword [esi], 0x15
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1004345f
cmp ebx, eax
jae 0x10043446
cmp dword [ebp - 8], 0
je 0x1004377f
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, ebx
shl edx, cl
add ebx, 8
add dword [ebp - 4], edx
inc dword [ebp - 0xc]
cmp ebx, dword [esi + 0x48]
jb 0x10043421
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
sub ebx, eax
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [esi + 0x40], edx
add dword [esi + 0x1bc4], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x1bc8], eax
mov dword [esi], 0x16
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x50]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
jmp 0x100434b4
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
mov ecx, dword [esi + 0x58]
add ebx, 8
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x50]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x10043482
test al, 0xf0
jne 0x1004355d
mov dword [ebp - 0x1c], eax
shr dword [ebp - 0x1c], 8
movzx edx, byte [ebp - 0x1c]
mov dword [ebp - 0x24], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
shr eax, 0x10
dec edx
and edx, dword [ebp - 4]
shr edx, cl
add edx, eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x1c]
jmp 0x10043540
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0x1f]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
movzx ecx, byte [ebp - 0x20]
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add ebx, 8
mov ecx, edx
dec eax
and eax, dword [ebp - 4]
shr eax, cl
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, ebx
ja 0x100434fd
movzx ecx, byte [ebp - 0x1f]
shr dword [ebp - 4], cl
sub ebx, ecx
add dword [esi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
add dword [esi + 0x1bc4], ecx
sub ebx, ecx
mov dword [ebp - 0x24], ecx
test al, 0x40
jne 0x10043721
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov dword [esi], 0x17
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100435db
cmp ebx, eax
jae 0x100435c2
cmp dword [ebp - 8], 0
je 0x1004377f
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, ebx
shl edx, cl
add ebx, 8
add dword [ebp - 4], edx
inc dword [ebp - 0xc]
cmp ebx, dword [esi + 0x48]
jb 0x1004359d
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
sub ebx, eax
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [esi + 0x44], edx
add dword [esi + 0x1bc4], eax
mov dword [esi], 0x18
cmp dword [ebp - 0x10], 0
je 0x1004377f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x44]
cmp edx, eax
jbe 0x10043631
sub edx, eax
cmp edx, dword [esi + 0x2c]
jbe 0x1004360c
cmp dword [esi + 0x1bc0], 0
jne 0x10043721
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
cmp edx, ecx
jbe 0x1004361f
add eax, dword [esi + 0x28]
sub edx, ecx
sub eax, edx
jmp 0x10043623
sub eax, edx
add eax, ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x24], ecx
cmp edx, ecx
jbe 0x1004363c
mov edx, ecx
jmp 0x1004363c
mov eax, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x24], edx
cmp edx, dword [ebp - 0x10]
jbe 0x10043644
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
sub dword [ebp - 0x10], edx
sub ecx, edx
sub eax, dword [ebp - 0x14]
mov dword [esi + 0x40], ecx
mov dword [ebp - 0x24], eax
jmp 0x1004365a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov al, byte [eax + ecx]
inc dword [ebp - 0x14]
dec edx
mov byte [ecx], al
jne 0x10043657
cmp dword [esi + 0x40], edx
jne 0x1004372e
jmp 0x1004368b
cmp dword [ebp - 0x10], 0
je 0x1004377f
mov ecx, dword [ebp - 0x14]
mov al, byte [esi + 0x40]
inc dword [ebp - 0x14]
dec dword [ebp - 0x10]
mov byte [ecx], al
mov dword [esi], 0x14
jmp 0x1004372e
cmp dword [esi + 8], 0
je 0x10043769
jmp 0x100436c2
cmp dword [ebp - 8], 0
je 0x1004377f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, ebx
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
add ebx, 8
cmp ebx, 0x20
jb 0x100436a2
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
add dword [edi + 0x14], eax
add dword [esi + 0x1c], eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100436ef
mov ecx, dword [ebp - 0x14]
push eax
sub ecx, eax
mov eax, dword [esi + 0x18]
call fcn.10044de9
pop ecx
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, eax
and ecx, 0xff00
mov edx, eax
shl edx, 0x10
add ecx, edx
mov edx, eax
shr edx, 8
shl ecx, 8
and edx, 0xff00
add ecx, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [esi + 0x18]
je 0x10043764
mov dword [esi], 0x1d
mov dword [edi + 0x18], 0x1004e591
mov eax, dword [esi]
cmp eax, 0x1e
jbe switch.0x10042c34
push 0xfffffffffffffffe
pop eax
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
push 2
jmp 0x1004373b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], 0x1c
mov dword [ebp - 0x28], 1
jmp 0x1004377f
mov dword [ebp - 0x28], 0xfffffffd
cmp dword [esi + 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
jne 0x100437b2
cmp dword [esi], 0x1a
jge 0x100437ce
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
je 0x100437ce
push dword [ebp - 0x18]
mov eax, edi
call fcn.10042af0
pop ecx
test eax, eax
je 0x100437ce
mov dword [esi], 0x1e
push 0xfffffffffffffffc
jmp 0x1004373b
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
sub eax, dword [edi + 0x10]
sub ecx, dword [edi + 4]
add dword [edi + 0x14], eax
add dword [edi + 8], ecx
add dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x10043802
test eax, eax
je 0x10043802
mov ecx, dword [edi + 0xc]
push eax
sub ecx, eax
mov eax, dword [esi + 0x18]
call fcn.10044de9
pop ecx
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov eax, dword [esi]
cmp eax, 0xb
jne 0x1004380e
lea ecx, [eax + 0x75]
jmp 0x10043810
xor ecx, ecx
cmp eax, 0x13
je 0x1004381e
cmp eax, 0xe
je 0x1004381e
xor eax, eax
jmp 0x10043823
mov eax, 0x100
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, eax
mov eax, dword [ebp - 0x28]
add edx, ecx
add edx, dword [esi + 0x3c]
mov dword [edi + 0x2c], edx
test eax, eax
jne 0x1004373c
push 0xfffffffffffffffb
jmp 0x1004373b