Function at 0x43b290
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 0x43b531
mov esi, dword [ebp + 8]
test esi, esi
je 0x43b2b7
cmp dword [esi + 0x200], 0
jne 0x43b2c6
mov eax, 0xffff
add word [ebx + 0x28], ax
jne 0x43b531
mov edi, dword [ebx + 8]
mov dword [esp + 0x14], edi
test edi, edi
je 0x43b3ee
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x43b2ed
cmp dword [esi + 0x200], 0
jne 0x43b38d
mov ecx, dword [edi]
mov eax, ecx
test ecx, ecx
jne 0x43b2fb
mov dword [esp + 0x10], ecx
jmp 0x43b311
cmp byte [ecx], 0
je 0x43b306
inc eax
cmp byte [eax], 0
jne 0x43b300
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 0x43b35d
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, eax
jle 0x43b353
lea ebx, [ebx]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4c2040]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x43b330
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor edx, edx
div dword [ebx]
mov dword [esp + 0x14], edx
jmp 0x43b365
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.00407d20
add esp, 8
test eax, eax
je 0x43b38a
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.00407dc0
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x43b39a
cmp dword [esi + 0x200], 0
jne 0x43b3ae
mov eax, dword [edi + 0x28]
test eax, eax
je 0x43b3ae
dec dword [eax]
jne 0x43b3ae
push eax
call fcn.00404170
add esp, 4
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.00432000
mov eax, dword [edi + 0x10]
add esp, 8
mov ecx, esi
call fcn.00404210
test byte [edi + 0x38], 0x10
je 0x43b3d5
mov eax, dword [edi + 0x20]
mov ecx, esi
call fcn.00404210
mov eax, edi
mov ecx, esi
call fcn.00404210
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x43b2d5
push ebx
call fcn.00448da0
add esp, 4
push ebx
mov edi, esi
call fcn.0043b210
mov eax, dword [ebx]
add esp, 4
mov ecx, esi
call fcn.00404210
mov eax, dword [ebx + 0x14]
mov ecx, esi
call fcn.00404210
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x43b42f
push edi
push esi
call fcn.004526b0
add esp, 8
mov eax, edi
mov ecx, esi
call fcn.00404210
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.00432ba0
add esp, 8
test esi, esi
je 0x43b449
cmp dword [esi + 0x200], 0
jne 0x43b455
push 0
mov edi, ebx
call fcn.00461910
add esp, 4
cmp dword [ebx + 0x38], 0
je 0x43b528
xor edi, edi
cmp dword [ebx + 0x34], edi
jle 0x43b47e
cmp edi, 1
je 0x43b478
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + edi*4]
mov ecx, esi
call fcn.00404210
inc edi
cmp edi, dword [ebx + 0x34]
jl 0x43b466
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x43b528
test esi, esi
je 0x43b51f
cmp dword [esi + 0x200], 0
je 0x43b4eb
cmp eax, dword [esi + 0x10c]
jb 0x43b4c9
cmp eax, dword [esi + 0x110]
jae 0x43b4c9
movzx eax, word [esi + 0xf0]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
mov eax, ebx
mov ecx, esi
call fcn.00404210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x4d7750]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.00404210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x10c]
jb 0x43b51f
cmp eax, dword [esi + 0x110]
jae 0x43b51f
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.00404210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00404170
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.00404210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret