Function at 0x45c040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ebx, dword [edi]
test dword [ebx + 0xc], 0x4000000
movzx eax, byte [edi + 0x1ba]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
je 0x45c53a
xor esi, esi
cmp dword [edi + 0xc], esi
jne 0x45c089
mov eax, ebx
call fcn.0043cd60
mov dword [edi + 0xc], eax
cmp eax, esi
je 0x45c089
push 0x87
call fcn.0043cec0
add esp, 4
mov edx, dword [esp + 0x3c]
mov ebp, dword [edx + 0x44]
mov dword [esp + 0x14], 0xfff0bdc0
cmp ebp, esi
je 0x45c0c5
cmp dword [ebx + 4], esi
mov dword [esp + 0x14], esi
jle 0x45c0c5
mov eax, dword [ebx + 8]
add eax, 0xc
jmp 0x45c0b0
cmp dword [eax], ebp
je 0x45c0c5
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x10
cmp ecx, dword [ebx + 4]
mov dword [esp + 0x14], ecx
jl 0x45c0b0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov ebp, dword [edx + 0x24]
shl ecx, 4
mov ecx, dword [ecx + eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ebp
cmp ebp, esi
je 0x45c16b
jmp 0x45c0f4
mov ebp, dword [esp + 0x10]
cmp byte [edi + 0x1ba], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
je 0x45c120
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
push ebx
call fcn.004522a0
add esp, 0xc
jmp 0x45c1d3
mov esi, dword [edi]
cmp byte [esi + 0x7c], 0
mov ebp, dword [ebp + 8]
jne 0x45c182
lea ecx, [edi + 8]
push ecx
call fcn.00464230
add esp, 4
test eax, eax
je 0x45c182
inc dword [edi + 0x40]
mov ebp, dword [esp + 0x10]
mov dword [edi + 4], eax
cmp dword [esp + 0x2c], 0
je 0x45c53a
cmp byte [ebx + 0x1e], 0
jne 0x45c53a
mov ebp, dword [ebp + 4]
xor esi, esi
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x45c0f0
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
mov eax, ecx
cmp ecx, esi
jne 0x45c303
xor ebp, ebp
mov dword [esp + 0x28], ebp
jmp 0x45c31b
mov esi, dword [esp + 0x28]
mov edx, dword [edi]
push esi
push ebp
push edx
call fcn.004522a0
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
jne 0x45c1cf
push ebp
test esi, esi
je 0x45c1b5
push esi
push str.no_such_table
push str._s:__s._s
call fcn.004259e0
add esp, 0x10
jmp 0x45c1c7
push str.no_such_table
push str._s:__s
call fcn.004259e0
add esp, 0xc
mov eax, dword [esp + 0x30]
mov byte [edi + 0x12], 1
mov ebp, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x45c145
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
push esi
push edi
call fcn.0045ac90
add esp, 0x14
test eax, eax
jne 0x45c145
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x45c20d
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x34], edx
lea ebx, [esp + 0x34]
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp dword [eax + 0x14], ebp
jle 0x45c27d
mov ecx, dword [ebx + ebp*4]
mov edx, dword [esp + 0x3c]
cmp ecx, dword [edx + 4]
jne 0x45c22b
mov dword [ebx + ebp*4], 0xffffffff
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x100], 0
je 0x45c273
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45c248
mov ecx, dword [eax + 8]
mov eax, dword [ecx + ebp*4]
jmp 0x45c24b
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edx*8]
mov edx, dword [esi]
push ecx
push eax
push edx
mov eax, edi
call fcn.00451a90
xor ecx, ecx
add esp, 0xc
cmp eax, 2
sete cl
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
inc ebp
cmp ebp, dword [edx + 0x14]
jl 0x45c218
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov ebp, dword [esp + 0x14]
push eax
push 0
push ecx
push ebp
mov eax, edi
call fcn.00451cc0
mov eax, dword [esp + 0x50]
inc dword [edi + 0x44]
add esp, 0x10
test eax, eax
je 0x45c2be
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push ecx
push esi
push ebp
push edi
call fcn.0045aef0
add esp, 0x24
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45c2e4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push ecx
push esi
push ebp
push edi
call fcn.0045aef0
add esp, 0x24
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.004239e0
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
add esp, 8
jmp 0x45c15a
cmp byte [ecx], 0
je 0x45c30e
inc eax
cmp byte [eax], 0
jne 0x45c308
sub eax, ecx
and eax, 0x3fffffff
mov ebp, eax
mov dword [esp + 0x28], eax
mov esi, dword [edx + 0x44]
add esi, 0x34
xor eax, eax
mov dword [esp + 0x34], esi
cmp dword [esi + 0xc], eax
je 0x45c35f
mov edx, ebp
test ebp, ebp
jle 0x45c355
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x4ba8f0]
lea ebp, [eax*8]
xor esi, ebp
dec edx
xor eax, esi
inc ecx
test edx, edx
jg 0x45c332
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
xor edx, edx
div dword [esi]
mov eax, edx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
push ebp
push edx
mov edx, eax
mov eax, esi
call fcn.00426980
add esp, 8
test eax, eax
je 0x45c53a
mov ebp, dword [eax + 8]
xor esi, esi
cmp ebp, esi
je 0x45c53a
cmp byte [ebp + 0x18], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
jne 0x45c3a7
cmp dword [edi + 0x1a8], esi
jne 0x45c3a7
cmp byte [edi + 0x158], 0
je 0x45c52f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
push edi
call fcn.0045ac90
add esp, 0x14
test eax, eax
je 0x45c3dd
cmp dword [esp + 0x2c], esi
je 0x45c53a
cmp byte [ebx + 0x1e], 0
jne 0x45c53a
jmp 0x45c52f
cmp byte [ebx + 0x1e], 0
jne 0x45c51f
cmp byte [ebx + 0xea], 0
je 0x45c42c
mov ecx, 0x40
cmp cx, word [ebx + 0xe8]
ja 0x45c42c
mov esi, dword [ebx + 0xf4]
test esi, esi
je 0x45c42c
mov edx, dword [esi]
inc dword [ebx + 0xec]
mov eax, dword [ebx + 0xec]
cmp eax, dword [ebx + 0xf0]
mov dword [ebx + 0xf4], edx
jle 0x45c440
mov dword [ebx + 0xf0], eax
jmp 0x45c440
push 0x40
call fcn.00423680
add esp, 4
test eax, eax
jne 0x45c43e
mov byte [ebx + 0x1e], 1
mov esi, eax
test esi, esi
je 0x45c51f
push 0x40
push 0
push esi
call fcn.004957a0
mov eax, 1
mov word [esi + 2], ax
movsx ecx, word [esi]
add esp, 0xc
push ecx
push eax
push ebx
mov eax, esi
call fcn.00455dd0
add esp, 0xc
cmp byte [ebx + 0x1e], 0
mov esi, eax
je 0x45c483
push esi
mov esi, ebx
call fcn.00456010
jmp 0x45c51c
movsx eax, word [esi]
mov ebx, dword [esp + 0x28]
lea edx, [eax*8]
sub edx, eax
mov dword [esi + edx*8 - 0x2c], 0
mov dword [esi + edx*8 - 0x30], 0
lea eax, [esi + edx*8 - 0x30]
mov eax, dword [ebp]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov dword [esi + 0xc], edx
mov ecx, 1
add word [eax + 0x20], cx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x44]
add dword [edi + 0x44], ecx
test eax, eax
je 0x45c4e8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
push ecx
push ebp
push ebx
push edx
push esi
push edi
call fcn.0045b6b0
add esp, 0x20
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45c509
mov ecx, dword [esp + 0x3c]
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
push ebp
push ebx
push ecx
push esi
push edi
call fcn.0045b6b0
add esp, 0x20
mov dword [esi + 0xc], 0
push esi
mov esi, dword [esp + 0x1c]
call fcn.00456010
mov ebx, esi
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
push ebx
call fcn.004239e0
add esp, 8
xor esi, esi
mov ebp, dword [ebp + 0xc]
cmp ebp, esi
jne 0x45c384
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret