Function at 0x401d02
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ff20
push 0xffffffffffffffff
push 0x4809d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.004018c5
mov edx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov al, byte [edx + 8]
test al, al
je 0x40ffa5
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x49000c]
mov eax, dword [0x490010]
mov dword [esp + 0x30], ecx
mov cx, word [0x490014]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
jmp 0x40ffe9
mov ecx, dword [edx + 4]
mov edx, dword [edx]
cmp ecx, 0x10
jge 0x40ffc5
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40ffe9
mov eax, dword [edx]
mov dword [esp + 0x30], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
mov cx, word [edx + 0xc]
mov word [esp + 0x3c], cx
mov dl, byte [edx + 0xe]
mov byte [esp + 0x3e], dl
mov eax, dword [ebx + 0x2964]
cmp eax, ebp
jle 0x410071
shl eax, 2
push eax
call fcn.00438ac2
mov ecx, dword [ebx + 0x2964]
add esp, 4
xor esi, esi
cmp ecx, ebp
mov dword [esp + 0x18], eax
jle 0x410026
mov edi, eax
call fcn.00438df7
mov dword [edi], eax
mov eax, dword [ebx + 0x2964]
inc esi
add edi, 4
cmp esi, eax
jl 0x410011
mov ecx, dword [ebx + 0x2964]
shl ecx, 2
push ecx
call fcn.00438ac2
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2964]
add esp, 4
xor ecx, ecx
cmp eax, ebp
jle 0x410071
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edx, eax
mov esi, dword [ebx + 0x2984]
mov edi, dword [edx + eax]
add eax, 4
mov esi, dword [esi + ecx*4]
xor esi, edi
inc ecx
mov dword [eax - 4], esi
mov esi, dword [ebx + 0x2964]
cmp ecx, esi
jl 0x410052
mov eax, dword [ebx + 0x2968]
cmp eax, ebp
jle 0x41010d
push eax
call fcn.00438ac2
mov edi, eax
mov eax, dword [ebx + 0x2968]
add esp, 4
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x20], edi
jle 0x4100bb
call fcn.00438df7
and eax, 0x800000ff
jns 0x4100ad
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + esi], al
mov eax, dword [ebx + 0x2968]
inc esi
cmp esi, eax
jl 0x41009a
mov edx, dword [ebx + 0x2968]
push edx
call fcn.00438ac2
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2968]
add esp, 4
xor esi, esi
cmp eax, ebp
jle 0x41010d
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ebp, eax
mov eax, dword [ebx + 0x2988]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + esi]
lea edi, [ecx + esi]
test dl, dl
mov dl, byte [edi + ebp]
setne al
xor dl, al
inc esi
mov byte [edi], dl
mov eax, dword [ebx + 0x2968]
cmp esi, eax
jl 0x4100e4
xor ebp, ebp
sub esp, 0xc
lea edi, [ebx + 0x18]
mov eax, esp
mov dword [esp + 0x5c], esp
push str.SAVE__.LCS
push eax
mov ecx, edi
call fcn.00401609
lea ecx, [esp + 0x30]
call fcn.004015e1
mov ecx, dword [esp + 0x24]
push ebp
push 0x80
push 2
push ebp
push ebp
mov ebp, dword [0x4aa5f4]
push 0x40000000
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x410189
mov edi, dword [edi]
push 0
push edi
call dword [0x4aa5e8]
test eax, eax
je 0x4102aa
mov edx, dword [esp + 0x24]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4102aa
mov edi, dword [0x4aa688]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x38]
push 0x10
push ecx
push esi
call edi
test eax, eax
je 0x4102aa
cmp dword [esp + 0x10], 0x10
jne 0x4102aa
mov eax, dword [ebx + 0x2964]
test eax, eax
jle 0x410208
lea edx, [esp + 0x10]
lea ebp, [eax*4]
mov eax, dword [esp + 0x18]
push 0
push edx
push ebp
push eax
push esi
call edi
test eax, eax
je 0x4102aa
cmp ebp, dword [esp + 0x10]
jne 0x4102aa
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push edx
push esi
call edi
test eax, eax
je 0x4102aa
cmp ebp, dword [esp + 0x10]
jne 0x4102aa
mov ebx, dword [ebx + 0x2968]
test ebx, ebx
jle 0x41024a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x4102aa
cmp ebx, dword [esp + 0x10]
jne 0x4102aa
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push eax
push esi
call edi
test eax, eax
je 0x4102aa
cmp ebx, dword [esp + 0x10]
jne 0x4102aa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41025b
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41026c
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41027d
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41028e
push eax
call fcn.0043854c
add esp, 4
push esi
call dword [0x4aa68c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401ae1
mov al, 1
jmp 0x410308
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4102bb
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4102cc
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4102dd
push eax
call fcn.0043854c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4102ee
push eax
call fcn.0043854c
add esp, 4
push esi
call dword [0x4aa68c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401ae1
xor al, al
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4