Function at 0x45d910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d6fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], eax
mov esi, dword [ebx]
mov cl, byte [ebx + 0x1ca]
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x15], cl
test dword [esi + 0x18], 0x4000000
je 0x45e15d
mov ecx, dword [eax + 0x44]
push edi
mov edi, 0xfff0bdc0
mov dword [ebp - 0x2c], edi
test ecx, ecx
je 0x45d97f
mov edx, dword [esi + 0x14]
xor edi, edi
mov dword [ebp - 0x2c], edi
test edx, edx
jle 0x45d97f
mov eax, dword [esi + 0x10]
add eax, 0xc
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x45d97c
inc edi
add eax, 0x10
cmp edi, edx
jl 0x45d970
mov dword [ebp - 0x2c], edi
mov eax, dword [esi + 0x10]
add edi, edi
mov ecx, dword [eax + edi*8]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x45ddb6
nop dword [eax + eax]
cmp byte [ebx + 0x1ca], 0
mov edi, dword [eax + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], edi
je 0x45d9d6
push ecx
push edi
push esi
call fcn.0045cdf0
add esp, 0xc
mov edi, eax
jmp 0x45db72
mov ecx, dword [ebx]
cmp byte [ecx + 0x7d], 0
jne 0x45db27
lea eax, [ebx + 4]
push eax
push ecx
call fcn.004629c0
add esp, 8
test eax, eax
je 0x45db27
inc dword [ebx + 0x44]
xor edi, edi
mov dword [ebx + 0xc], eax
cmp byte [ebp - 0x15], 0
je 0x45e15c
cmp byte [esi + 0x36], 0
jne 0x45e15c
test edi, edi
jne 0x45dda2
push ebx
call fcn.00461b30
mov ecx, dword [ebp - 0xc]
mov edi, eax
add esp, 4
mov ecx, dword [ecx + 0x14]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ecx + 1]
add edx, eax
mov dword [ebp - 0x34], edx
xor edx, edx
mov dword [ebp - 0x1c], edx
test ecx, ecx
jle 0x45dacc
mov esi, dword [ebp - 0xc]
lea ebx, [esi + 0x24]
nop dword [eax]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
inc ecx
add eax, ecx
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x20], ecx
jg 0x45da7e
push edi
call fcn.0043e0c0
mov edx, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x45dab4
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
lea ecx, [ecx + ecx*4]
inc eax
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp - 0x34]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [ebp - 0xc]
mov word [eax + ecx*4], 0x49
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc edx
add ebx, 8
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jl 0x45da50
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x20], eax
jg 0x45daef
push edi
call fcn.0043e0c0
add esp, 4
test eax, eax
jne 0x45dda2
mov eax, dword [ebp - 0x14]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x1c]
mov word [eax + ecx*4], 0x75
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x45dda2
push dword [ebp - 0x20]
push edi
push dword [ebx]
call fcn.0045cdf0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45db7a
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
test eax, eax
je 0x45db5b
push eax
push str.no_such_table
push str._s:__s._s
push ebx
call fcn.004585a0
add esp, 0x14
jmp 0x45db6e
push str.no_such_table
push str._s:__s
push ebx
call fcn.004585a0
add esp, 0x10
mov byte [ebx + 0x11], 1
test edi, edi
je 0x45d9ff
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push edi
push ebx
call fcn.0043f8d0
add esp, 0x14
test eax, eax
jne 0x45d9ff
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x45dba5
mov edx, ebx
mov dword [ebp - 0x24], ebx
jmp 0x45dbb4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ecx + 0x14], eax
jle 0x45dc3e
mov ebx, dword [ebp - 0x10]
nop dword [eax + eax]
mov esi, dword [ebp - 0x30]
lea ecx, [eax*4]
mov eax, dword [ecx + edx]
cmp eax, dword [esi + 4]
mov esi, dword [ebp - 0x28]
jne 0x45dbec
mov dword [ecx + edx], 0xffffffff
cmp dword [esi + 0x10c], 0
je 0x45dc2c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x45dc04
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax]
jmp 0x45dc07
mov eax, dword [edi + 4]
push dword [ebp - 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xc]
push dword [eax + ecx*8]
push dword [edi]
push ebx
call fcn.0044ee40
mov edx, dword [ebp - 0x24]
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0x14]
jl 0x45dbd0
mov ebx, dword [ebp - 0x38]
push dword [edi]
push 0
push dword [edi + 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call fcn.00471ef0
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
inc dword [eax + 0x48]
test ecx, ecx
je 0x45dc7f
push dword [ebp - 0x1c]
push 0xffffffffffffffff
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x2c]
push eax
call fcn.00439ff0
mov eax, dword [ebp - 0x10]
add esp, 0x24
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x45dca2
push dword [ebp - 0x1c]
push 1
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x2c]
push eax
call fcn.00439ff0
add esp, 0x24
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x45dce7
test ebx, ebx
je 0x45dcce
cmp ebx, dword [esi + 0x104]
jb 0x45dcce
cmp ebx, dword [esi + 0x108]
jae 0x45dcce
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x45dd9f
push ebx
call dword [0x4d6498]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f0]
add dword [eax], ecx
jmp 0x45dd9f
test ebx, ebx
je 0x45dd9f
cmp ebx, dword [esi + 0x104]
jb 0x45dd18
cmp ebx, dword [esi + 0x108]
jae 0x45dd18
mov eax, dword [esi + 0x100]
mov dword [ebx], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], ebx
jmp 0x45dd9f
test ebx, ebx
je 0x45dd9f
cmp dword [0x4d6470], 0
je 0x45ddc6
mov eax, dword [0x4d8640]
test eax, eax
je 0x45dd40
push eax
call dword [0x4d64bc]
add esp, 4
push ebx
call dword [0x4d6498]
mov ecx, dword [0x4d8538]
neg eax
add ecx, eax
mov eax, dword [0x4d8560]
cmp ecx, eax
mov dword [0x4d8538], ecx
push ebx
cmovg eax, ecx
mov ecx, dword [0x4d855c]
dec ecx
mov dword [0x4d8560], eax
mov eax, dword [0x4d8584]
cmp ecx, eax
mov dword [0x4d855c], ecx
cmovg eax, ecx
mov dword [0x4d8584], eax
call dword [0x4d6490]
mov eax, dword [0x4d8640]
add esp, 8
test eax, eax
je 0x45dd9f
push eax
call dword [0x4d64c4]
add esp, 4
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x45d9a0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x45ddcf
jmp 0x45dde2
push ebx
call dword [0x4d6490]
jmp 0x45dd9c
cmp byte [ecx], 0
je 0x45ddda
inc edi
cmp byte [edi], 0
jne 0x45ddd4
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x38
mov dword [ebp - 0x20], eax
cmp dword [eax + 0xc], 0
je 0x45de3c
xor eax, eax
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x45de2d
xor esi, esi
mov ebx, edi
nop
movzx eax, byte [ecx]
dec ebx
lea ecx, [esi*8]
movzx edx, byte [eax + 0x4bd0d8]
xor edx, ecx
mov ecx, dword [ebp - 0x14]
inc ecx
xor esi, edx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jg 0x45de00
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
xor edx, edx
div dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
jmp 0x45de3e
xor edx, edx
push edx
push edi
push ecx
push eax
call fcn.00439580
add esp, 0x10
test eax, eax
je 0x45e15c
mov edi, dword [eax + 8]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x45e15c
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
jne 0x45de87
cmp dword [ebx + 0x1b0], 0
jne 0x45de87
cmp byte [ebx + 0x17], 0
je 0x45e14e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x30]
push ebx
call fcn.0043f8d0
add esp, 0x14
test eax, eax
je 0x45deb9
cmp byte [ebp - 0x15], 0
je 0x45e15c
cmp byte [esi + 0x36], 0
jne 0x45e15c
jmp 0x45e14e
cmp byte [esi + 0x36], 0
mov edi, dword [ebp - 0x14]
jne 0x45e022
cmp byte [esi + 0xea], 0
je 0x45dee3
mov eax, 0x48
cmp ax, word [esi + 0xe8]
jbe 0x45df2d
inc dword [esi + 0xf8]
cmp dword [0x4d6470], 0
je 0x45e053
mov eax, dword [0x4d8640]
test eax, eax
je 0x45df03
push eax
call dword [0x4d64bc]
add esp, 4
lea eax, [ebp - 0x28]
push eax
push 0x48
call fcn.00440800
mov eax, dword [0x4d8640]
add esp, 8
test eax, eax
je 0x45e04e
push eax
call dword [0x4d64c4]
mov ebx, dword [ebp - 0x28]
jmp 0x45e060
mov ebx, dword [esi + 0x100]
test ebx, ebx
jne 0x45df3f
inc dword [esi + 0xfc]
jmp 0x45dee3
mov eax, dword [ebx]
mov dword [esi + 0x100], eax
mov eax, dword [esi + 0xec]
inc eax
mov dword [esi + 0xec], eax
inc dword [esi + 0xf4]
cmp eax, dword [esi + 0xf0]
jle 0x45df68
mov dword [esi + 0xf0], eax
push 0x48
push 0
push ebx
call fcn.00498c70
mov eax, 1
mov word [ebx + 2], ax
movsx eax, word [ebx]
push eax
push 1
push ebx
push esi
call fcn.00471250
add esp, 0x1c
mov ebx, eax
cmp byte [esi + 0x36], 0
jne 0x45e015
movsx eax, word [ebx]
mov edx, dword [ebp - 0xc]
shl eax, 6
mov dword [eax + ebx - 0x34], 0
mov dword [eax + ebx - 0x38], 0
mov ecx, dword [edx]
mov dword [ebx + 0x14], ecx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
inc word [ecx + 0x20]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x48]
mov dword [ebx + 0x28], eax
inc dword [ecx + 0x48]
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x20]
je 0x45dff3
push 0xffffffffffffffff
push dword [ebp + 0x14]
push edi
push edx
push eax
push dword [ebp - 0x30]
push ebx
push ecx
call fcn.0043a830
mov ecx, dword [ebp - 0x10]
add esp, 0x20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 0x10], 0
je 0x45e00e
push 1
push dword [ebp + 0x10]
push edi
push edx
push eax
push dword [ebp - 0x30]
push ebx
push ecx
call fcn.0043a830
add esp, 0x20
mov dword [ebx + 0xc], 0
push ebx
push esi
call fcn.00470ab0
add esp, 8
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x45e08a
test edi, edi
je 0x45e071
cmp edi, dword [esi + 0x104]
jb 0x45e071
cmp edi, dword [esi + 0x108]
jae 0x45e071
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x45e14b
mov ebx, dword [ebp - 0x28]
jmp 0x45e063
push 0x48
call dword [0x4d648c]
mov ebx, eax
mov dword [ebp - 0x28], ebx
add esp, 4
test ebx, ebx
jne 0x45df68
mov byte [esi + 0x36], 1
jmp 0x45e01f
push edi
call dword [0x4d6498]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f0]
add dword [eax], ecx
jmp 0x45e14b
test edi, edi
je 0x45e14b
cmp edi, dword [esi + 0x104]
jb 0x45e0bb
cmp edi, dword [esi + 0x108]
jae 0x45e0bb
mov eax, dword [esi + 0x100]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], edi
jmp 0x45e14b
test edi, edi
je 0x45e14b
cmp dword [0x4d6470], 0
je 0x45e141
mov eax, dword [0x4d8640]
test eax, eax
je 0x45e0e3
push eax
call dword [0x4d64bc]
add esp, 4
push edi
call dword [0x4d6498]
mov ecx, dword [0x4d8538]
neg eax
add ecx, eax
mov eax, dword [0x4d8560]
cmp ecx, eax
mov dword [0x4d8538], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x4d855c]
dec ecx
mov dword [0x4d8560], eax
mov eax, dword [0x4d8584]
cmp ecx, eax
mov dword [0x4d855c], ecx
cmovg eax, ecx
mov dword [0x4d8584], eax
call dword [0x4d6490]
mov eax, dword [0x4d8640]
add esp, 8
test eax, eax
je 0x45e14b
push eax
call dword [0x4d64c4]
jmp 0x45e148
push edi
call dword [0x4d6490]
add esp, 4
mov edi, dword [ebp - 0xc]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x45de60
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00496cac
mov esp, ebp
pop ebp
ret