Function at 0x458d6a
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 0x459015
mov esi, dword [ebp + 8]
test esi, esi
je 0x458d91
cmp dword [esi + 0x200], 0
jne 0x458da0
mov eax, 0xffff
add word [ebx + 0x28], ax
jne 0x459015
mov edi, dword [ebx + 8]
mov dword [esp + 0x14], edi
test edi, edi
je 0x458ecd
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x458dc7
cmp dword [esi + 0x200], 0
jne 0x458e67
mov ecx, dword [edi]
mov eax, ecx
test ecx, ecx
jne 0x458dd5
mov dword [esp + 0x10], ecx
jmp 0x458deb
cmp byte [ecx], 0
je 0x458de0
inc eax
cmp byte [eax], 0
jne 0x458dda
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 0x458e37
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, eax
jle 0x458e2d
lea ebx, [ebx]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x100a9cd0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x458e0a
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor edx, edx
div dword [ebx]
mov dword [esp + 0x14], edx
jmp 0x458e3f
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.00438b5a
add esp, 8
test eax, eax
je 0x458e64
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.00442b3a
mov ebx, dword [ebp + 0xc]
call fcn.0044110a
test esi, esi
je 0x458e79
cmp dword [esi + 0x200], 0
jne 0x458e8d
mov eax, dword [edi + 0x28]
test eax, eax
je 0x458e8d
dec dword [eax]
jne 0x458e8d
push eax
call fcn.004391da
add esp, 4
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.0044a5ca
mov eax, dword [edi + 0x10]
add esp, 8
mov ecx, esi
call fcn.0043e91a
test byte [edi + 0x38], 0x10
je 0x458eb4
mov eax, dword [edi + 0x20]
mov ecx, esi
call fcn.0043e91a
mov eax, edi
mov ecx, esi
call fcn.0043e91a
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x458daf
push ebx
call fcn.004583ea
add esp, 4
push ebx
mov edi, esi
call fcn.0044cd6a
mov eax, dword [ebx]
add esp, 4
mov ecx, esi
call fcn.0043e91a
mov eax, dword [ebx + 0x14]
mov ecx, esi
call fcn.0043e91a
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x458f0e
push edi
push esi
call fcn.00446e3a
add esp, 8
mov eax, edi
mov ecx, esi
call fcn.0043e91a
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.0044d58a
add esp, 8
test esi, esi
je 0x458f28
cmp dword [esi + 0x200], 0
jne 0x458f34
push 0
mov edi, ebx
call fcn.0042c7da
add esp, 4
cmp dword [ebx + 0x38], 0
je 0x45900c
xor edi, edi
cmp dword [ebx + 0x34], edi
jle 0x458f62
jmp 0x458f4a
cmp edi, 1
je 0x458f5c
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + edi*4]
mov ecx, esi
call fcn.0043e91a
inc edi
cmp edi, dword [ebx + 0x34]
jl 0x458f4a
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x45900c
test esi, esi
je 0x459003
cmp dword [esi + 0x200], 0
je 0x458fcf
cmp eax, dword [esi + 0x10c]
jb 0x458fad
cmp eax, dword [esi + 0x110]
jae 0x458fad
movzx eax, word [esi + 0xf0]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
mov eax, ebx
mov ecx, esi
call fcn.0043e91a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x100b7040]
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.0043e91a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x10c]
jb 0x459003
cmp eax, dword [esi + 0x110]
jae 0x459003
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.0043e91a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004391da
add esp, 4
mov eax, ebx
mov ecx, esi
call fcn.0043e91a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret