Function at 0x401734
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push dword [ebp + 8]
call fcn.004600a8
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x401762
push 4
push 0x480bcc
push dword [ebp + 8]
call fcn.004601a8
add esp, 0xc
test eax, eax
jne 0x401772
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x401f01
xor edx, edx
mov dword [ebp - 0xc], edx
jmp 0x4017b2
push dword [ebp - 0x10]
push dword [ebp + 8]
imul ecx, dword [ebp - 0xc], 0x84
add ecx, 0x4800f8
push ecx
call fcn.004601a8
add esp, 0xc
test eax, eax
jne 0x4017af
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 5
add eax, edx
mov eax, dword [eax*4 + 0x480178]
jmp 0x401f01
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x4800ec]
jl 0x401779
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x4017f0
push 0xc
push 0x480bd1
imul eax, dword [ebp - 0xc], 0x84
add eax, 0x4800f8
push eax
call fcn.004601a8
add esp, 0xc
test eax, eax
jne 0x4017ed
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
jmp 0x4017fb
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x4800ec]
jl 0x4017c4
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x4800ec]
jl 0x401816
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xfffffff7
xor eax, eax
jmp 0x401f01
push 0x8000
push 0x40
push 2
push 0x8000
push dword [ebp + 8]
call fcn.00461b80
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40185a
cmp byte [0x4800f5], 0
jne 0x401762
push dword [ebp + 8]
push str.NO_database__s__
call fcn.00462a50
add esp, 8
jmp 0x401762
push 0xc0
push 1
call fcn.0045f0c4
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x80], edx
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.00460078
add esp, 8
mov eax, dword [ebp - 0x18]
mov byte [eax + 0xb8], 1
push dword [ebp - 0x18]
push 2
push 0x3e
push dword [ebp + 0xc]
call fcn.004023b4
add esp, 0x10
movsx edx, al
dec edx
je 0x4018d0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xfffffffe
mov eax, dword [ebp - 0x18]
push dword [eax + 0x80]
call fcn.00461ac8
pop ecx
push dword [ebp - 0x18]
call fcn.0045f918
pop ecx
xor eax, eax
jmp 0x401f01
push 0
push 0x3e
mov edx, dword [ebp - 0x18]
push dword [edx + 0x80]
call fcn.0046299c
add esp, 0xc
push 2
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 0x80]
call fcn.00461b64
add esp, 0xc
push 2
push 0x3e
push dword [ebp - 0x18]
call fcn.004024f8
add esp, 0xc
movsx edx, byte [ebp - 0x38]
cmp edx, 0x1d
je 0x401928
movsx ecx, byte [ebp - 0x37]
cmp ecx, 0x1d
je 0x401928
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xfffffff9
jmp 0x4018b1
push dword [ebp - 0x18]
push 0x20
push 0
push dword [ebp + 0xc]
call fcn.004023b4
add esp, 0x10
movsx edx, al
dec edx
je 0x40194e
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xfffffffe
jmp 0x4018b1
push 0
push 0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x80]
call fcn.0046299c
add esp, 0xc
push 0x20
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0x80]
call fcn.00461b64
add esp, 0xc
push 0x20
push 0
push dword [ebp - 0x18]
call fcn.004024f8
add esp, 0xc
mov byte [ebp - 5], 8
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp - 5]
xor byte [ebp + edx - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x20
jl 0x401992
lea eax, [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x90], edx
lea eax, [ebp - 0x30]
movsx edx, word [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x94], edx
lea eax, [ebp - 0x2e]
movsx edx, word [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x98], edx
movsx eax, byte [ebp - 0x37]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x84], eax
movsx ecx, byte [ebp - 0x36]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x88], ecx
movsx edx, byte [ebp - 0x35]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x8c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x98]
inc edx
push edx
push 1
call fcn.0045f0c4
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xa0], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x98]
inc edx
push edx
push 1
call fcn.0045f0c4
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x9c], eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0x98]
push 0x20
mov edx, dword [ebp - 0x18]
push dword [edx + 0xa0]
call fcn.0045ff44
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xa0]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x98]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x98]
push 0x20
mov edx, dword [ebp - 0x18]
push dword [edx + 0x9c]
call fcn.0045ff44
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x9c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x98]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x94]
add edx, 0xffffffe0
test edx, edx
jns 0x401aab
add edx, 0x1f
sar edx, 5
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xa8], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa8], 0xff
jg 0x4018b1
push 4
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xa8]
add ecx, 2
push ecx
call fcn.0045f0c4
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xac], eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x401b0f
push 0x1c
push 1
call fcn.0045f0c4
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xac]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0xa8]
jle 0x401af1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xac]
mov eax, dword [ecx]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xac]
mov edx, dword [eax]
mov dword [edx + 0x14], 1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xa8]
shl eax, 5
push eax
call fcn.0045f908
pop ecx
mov dword [ebp - 4], eax
push 7
call fcn.0045f908
pop ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ecx]
mov dword [edx + 0x18], eax
push 6
push 0x20
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xac]
mov eax, dword [ecx]
push dword [eax + 0x18]
call fcn.0045ff44
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
mov byte [edx + 6], 0
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xa8]
shl eax, 5
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004023b4
add esp, 0x10
movsx edx, al
dec edx
je 0x401c43
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xac]
mov edx, dword [eax]
push dword [edx + 0x18]
call fcn.0045f918
pop ecx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x401bf1
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov ecx, dword [ebp - 0xc]
push dword [edx + ecx*4]
call fcn.0045f918
pop ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0xa8]
jle 0x401bd9
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0xac]
call fcn.0045f918
pop ecx
push dword [ebp - 4]
call fcn.0045f918
pop ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 0x9c]
call fcn.0045f918
pop ecx
mov edx, dword [ebp - 0x18]
push dword [edx + 0x9c]
call fcn.0045f918
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xfffffffe
jmp 0x4018b1
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xa8]
shl edx, 5
push edx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
push dword [ecx + 0x80]
call fcn.00461b64
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xa8]
shl edx, 5
push edx
push 0x20
push dword [ebp - 0x18]
call fcn.004024f8
add esp, 0xc
mov byte [ebp - 5], 8
mov dword [ebp - 0xc], 1
jmp 0x401cb8
mov cl, byte [ebp - 0xc]
add byte [ebp - 5], cl
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
dec edx
shl edx, 5
mov ecx, dword [ebp - 4]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 5]
xor byte [eax + edx], cl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x20
jl 0x401c96
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0xa8]
jle 0x401c8b
mov dword [ebp - 0xc], 1
jmp 0x401e4c
push 0xa
push 0x20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xac]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*4]
call fcn.0045ff44
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
mov byte [ecx + 0xa], 0
push 0xa
mov eax, dword [ebp - 0xc]
dec eax
shl eax, 5
add eax, dword [ebp - 4]
push eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov eax, dword [ebp - 0xc]
push dword [ecx + eax*4]
call fcn.0045fed4
add esp, 0xc
mov edx, dword [ebp - 0xc]
dec edx
shl edx, 5
mov ecx, dword [ebp - 4]
mov al, byte [ecx + edx + 0xb]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov byte [ecx + 0xb], al
mov eax, dword [ebp - 0xc]
dec eax
shl eax, 5
mov edx, dword [ebp - 4]
movsx eax, byte [edx + eax + 0x10]
and eax, 0xff
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xac]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
shl eax, 5
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + eax + 0x11]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4 - 4]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4 - 4]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0xc]
inc eax
push eax
push 1
call fcn.0045f0c4
add esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push dword [ecx + 0xc]
push 0x20
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
push dword [eax + 0x18]
call fcn.0045ff44
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xac]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 0x18]
mov byte [eax + ecx], 0
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0xa8]
jle 0x401cd2
push dword [ebp - 4]
call fcn.0045f918
pop ecx
push 4
mov eax, dword [0x4800f0]
add eax, 2
push eax
call fcn.0045f0c4
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xb0], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x401e9e
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xb0]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x4800f0]
jle 0x401e8a
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shl ecx, 5
add ecx, eax
mov edx, dword [ebp - 0x18]
mov dword [ecx*4 + 0x480178], edx
push dword [ebp - 0x18]
call fcn.004600a8
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
imul ecx, dword [ebp - 0x14], 0x84
add ecx, 0x4800f8
push ecx
call fcn.0045fef8
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xb4], eax
push 1
push dword [ebp - 0x18]
call fcn.00401f08
add esp, 8
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret