Function at 0x43fb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x43fdd1
mov esi, dword [ebp + 8]
test esi, esi
je 0x43fb57
cmp dword [esi + 0x200], 0
jne 0x43fb66
mov eax, 0xffff
add word [ebx + 0x28], ax
jne 0x43fdd1
mov edi, dword [ebx + 8]
mov dword [esp + 0x14], edi
test edi, edi
je 0x43fc8e
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x43fb8d
cmp dword [esi + 0x200], 0
jne 0x43fc2d
mov ecx, dword [edi]
mov eax, ecx
test ecx, ecx
jne 0x43fb9b
mov dword [esp + 0x10], ecx
jmp 0x43fbb1
cmp byte [ecx], 0
je 0x43fba6
inc eax
cmp byte [eax], 0
jne 0x43fba0
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x10], eax
mov ebx, dword [edi + 0x18]
add ebx, 0x18
cmp dword [ebx], 0
mov dword [esp + 0x18], ebx
je 0x43fbfd
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, eax
jle 0x43fbf3
lea ebx, [ebx]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4b1fe0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x43fbd0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor edx, edx
div dword [ebx]
mov dword [esp + 0x14], edx
jmp 0x43fc05
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, ebx
call fcn.0040bef0
add esp, 8
test eax, eax
je 0x43fc2a
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.0040bf90
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x43fc3a
cmp dword [esi + 0x200], 0
jne 0x43fc4e
mov eax, dword [edi + 0x28]
test eax, eax
je 0x43fc4e
dec dword [eax]
jne 0x43fc4e
push eax
call fcn.00408510
add esp, 4
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.004367e0
mov eax, dword [edi + 0x10]
add esp, 8
mov ecx, esi
call fcn.004085b0
test byte [edi + 0x38], 0x10
je 0x43fc75
mov eax, dword [edi + 0x20]
mov ecx, esi
call fcn.004085b0
mov eax, edi
mov ecx, esi
call fcn.004085b0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x43fb75
push ebx
call fcn.0044d3b0
add esp, 4
push ebx
mov edi, esi
call fcn.0043fab0
mov eax, dword [ebx]
add esp, 4
mov ecx, esi
call fcn.004085b0
mov eax, dword [ebx + 0x14]
mov ecx, esi
call fcn.004085b0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x43fccf
push edi
push esi
call fcn.00456a60
add esp, 8
mov eax, edi
mov ecx, esi
call fcn.004085b0
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.00437380
add esp, 8
test esi, esi
je 0x43fce9
cmp dword [esi + 0x200], 0
jne 0x43fcf5
push 0
mov edi, ebx
call fcn.00465960
add esp, 4
cmp dword [ebx + 0x38], 0
je 0x43fdc8
xor edi, edi
cmp dword [ebx + 0x34], edi
jle 0x43fd1e
cmp edi, 1
je 0x43fd18
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + edi*4]
mov ecx, esi
call fcn.004085b0
inc edi
cmp edi, dword [ebx + 0x34]
jl 0x43fd06
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x43fdc8
test esi, esi
je 0x43fdbf
cmp dword [esi + 0x200], 0
je 0x43fd8b
cmp eax, dword [esi + 0x10c]
jb 0x43fd69
cmp eax, dword [esi + 0x110]
jae 0x43fd69
movzx eax, word [esi + 0xf0]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
mov eax, ebx
mov ecx, esi
call fcn.004085b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x4c4958]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.004085b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x10c]
jb 0x43fdbf
cmp eax, dword [esi + 0x110]
jae 0x43fdbf
mov ecx, dword [esi + 0x108]
mov dword [eax], ecx
dec dword [esi + 0xf4]
mov dword [esi + 0x108], eax
mov eax, ebx
mov ecx, esi
call fcn.004085b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00408510
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.004085b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret