Function at 0x42dc10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
push esi
push edi
mov dword [esp + 0xc], edx
cmp eax, edx
jne 0x42dc35
mov eax, 0xffffff9a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0xe0]
cmp ebx, edx
je 0x42dc29
cmp dword [ebx], edx
jne 0x42dc4f
mov eax, 0xffffff9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
cmp edi, edx
jne 0x42dc5f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
cmp edx, dword [ebx + 0x84]
jb 0x42dc8b
ja 0x42dc7a
cmp edi, dword [ebx + 0x80]
jbe 0x42dc8b
cmp dword [ebx + 0xc8], edx
jne 0x42dc8b
mov ecx, dword [ebx + 0x80]
mov dword [ebx + 0x14], ecx
mov esi, dword [ebx + 8]
xor eax, eax
mov ecx, esi
add ecx, dword [ebx + 0x78]
adc eax, dword [ebx + 0x7c]
cmp edx, eax
jb 0x42dcb2
ja 0x42dca2
cmp edi, ecx
jbe 0x42dcb2
cmp dword [ebx + 0xc8], edx
je 0x42dcb2
mov edx, dword [ebx + 0x78]
add edx, esi
mov dword [ebx + 0x14], edx
cmp dword [ebx + 0x14], 0
jbe 0x42df05
lea esp, [esp]
cmp dword [ebx + 8], 0
jne 0x42ddc8
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x78]
test eax, eax
jne 0x42dcdc
test ecx, ecx
je 0x42ddc8
mov edi, 0x4000
mov dword [esp + 0x10], edi
test eax, eax
ja 0x42dd00
jb 0x42dcef
cmp ecx, edi
jae 0x42dd00
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42dc56
mov edi, eax
mov eax, dword [ebx + 0xc0]
add eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0xc4]
adc ecx, dword [ebx + 0x44]
mov esi, dword [ebx + 0xb4]
push ecx
push eax
lea eax, [ebx + 0x88]
xor edx, edx
call fcn.00404a60
add esp, 8
test eax, eax
jne 0x42df10
mov edx, dword [ebx]
mov eax, dword [ebx + 0xb4]
mov ecx, dword [ebx + 0xa4]
push edi
push edx
mov edx, dword [ebx + 0x8c]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, edi
jne 0x42df10
mov esi, dword [ebp + 8]
cmp dword [esi + 0xe4], 0
je 0x42ddb2
mov dword [esp + 0x14], 0
test edi, edi
je 0x42ddb2
add esi, 0xec
mov edx, dword [ebx]
add edx, dword [esp + 0x14]
mov eax, esi
call fcn.0042b900
movsx ecx, byte [edx]
xor eax, ecx
mov byte [edx], al
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0xf8]
movsx eax, al
call fcn.0042b920
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov byte [ecx + edx], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x10]
jb 0x42dd75
mov edi, dword [esp + 0x10]
xor eax, eax
add dword [ebx + 0x40], edi
mov dword [ebx + 8], edi
adc dword [ebx + 0x44], eax
sub dword [ebx + 0x78], edi
sbb dword [ebx + 0x7c], eax
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0xb8]
test eax, eax
je 0x42de7f
cmp dword [ebx + 0xc8], 0
jne 0x42de7f
cmp eax, 0xc
je 0x42defb
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
call fcn.0042ec80
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
js 0x42de1c
cmp dword [ebx + 0x1c], 0
je 0x42de1c
mov dword [esp + 0x14], 0xfffffffd
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x70]
xor ecx, ecx
mov esi, edi
sub esi, dword [esp + 0x18]
mov edx, ecx
sbb ecx, edx
add dword [ebx + 0x68], esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
adc dword [ebx + 0x6c], ecx
test edx, edx
je 0x42de51
push esi
mov ecx, edx
call fcn.00404dd0
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, eax
sub dword [ebx + 0x80], esi
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x70], edx
sbb dword [ebx + 0x84], ecx
sub edi, dword [esp + 0x18]
add dword [esp + 0xc], edi
cmp eax, 1
je 0x42df05
test eax, eax
jne 0x42df09
jmp 0x42defb
mov eax, dword [ebx + 8]
test eax, eax
jne 0x42de8e
mov ecx, dword [ebx + 0x78]
or ecx, dword [ebx + 0x7c]
je 0x42df05
mov esi, dword [ebx + 0x14]
cmp esi, eax
jb 0x42de97
mov esi, eax
xor eax, eax
test esi, esi
je 0x42deb1
lea ecx, [ecx]
mov edx, dword [ebx + 4]
mov dl, byte [eax + edx]
mov ecx, dword [ebx + 0x10]
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jb 0x42dea0
mov edi, dword [ebx + 0x10]
xor eax, eax
add dword [ebx + 0x68], esi
adc dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x70]
test edi, edi
jne 0x42dec7
xor eax, eax
jmp 0x42ded2
push esi
mov ecx, edi
call fcn.00404dd0
add esp, 4
sub dword [ebx + 0x80], esi
mov dword [ebx + 0x70], eax
mov eax, 0
sbb dword [ebx + 0x84], eax
sub dword [ebx + 8], esi
sub dword [ebx + 0x14], esi
add dword [ebx + 4], esi
add dword [ebx + 0x18], esi
add edi, esi
add dword [esp + 0xc], esi
mov dword [ebx + 0x10], edi
cmp dword [ebx + 0x14], 0
ja 0x42dcc0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret