Function at 0x404040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa44
mov eax, dword [0x43b0c0]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push esi
push edi
push str.Version
mov edi, ecx
push 0x69
push edi
mov dword [esp + 0x20], edx
call dword [0x431030]
mov ebx, eax
test ebx, ebx
je 0x40421f
push ebx
push edi
call dword [0x431034]
mov dword [esp + 0xc], eax
test eax, eax
je 0x40421f
push eax
call dword [0x431038]
push ebx
push edi
mov esi, eax
call dword [0x43103c]
mov edi, eax
push edi
call fcn.00424979
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0042cd00
add esp, 0xc
push edi
push esi
push ebx
call fcn.00426470
add esp, 0xc
mov ecx, edi
test ebx, ebx
je 0x4040e0
test edi, edi
jle 0x4040e0
mov al, byte [ecx + ebx]
sub al, 0xa
xor al, 0xbb
dec ecx
mov byte [ecx + ebx + 1], al
jns 0x4040d2
push dword [esp + 0xc]
call dword [0x431040]
mov dword [esp + 0xc], 0x4034b50
mov eax, dword [esp + 0xc]
sub esp, 8
mov edx, edi
mov ecx, ebx
mov dword [ebx], eax
call fcn.004246d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x404119
mov dword [0x43d9c0], 0x10000
jmp 0x404138
cmp dword [esi], 1
je 0x40412a
mov dword [0x43d9c0], 0x80000
jmp 0x404138
push ecx
mov ecx, dword [esi + 4]
call fcn.00423aa0
mov dword [0x43d9c0], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x244], eax
test esi, esi
jne 0x40415f
mov dword [0x43d9c0], 0x10000
jmp 0x4041e8
cmp dword [esi], 1
je 0x404170
mov dword [0x43d9c0], 0x80000
jmp 0x4041e8
mov edi, dword [esi + 4]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0xffffffff
jg 0x404182
mov eax, 0x10000
jmp 0x4041e3
cmp dword [edi + 4], 0xffffffff
je 0x40418d
call fcn.00423960
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
mov ebx, dword [eax + 4]
xor eax, eax
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], eax
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x240], eax
mov dword [esp + 0x244], eax
mov dword [0x43d9c0], eax
mov eax, ebx
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424979
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x404236
push dword [esp + 0x10]
call fcn.004250a0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.004249d6
mov esp, ebp
pop ebp
ret
mov eax, ebx
imul eax, eax, 0x208
push eax
push 0
push ecx
call fcn.0042cd00
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x404377
jmp 0x404260
xor eax, eax
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x244], eax
test esi, esi
jne 0x404286
mov dword [0x43d9c0], 0x10000
jmp 0x4042aa
cmp dword [esi], 1
je 0x404297
mov dword [0x43d9c0], 0x80000
jmp 0x4042aa
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00423b00
mov dword [0x43d9c0], eax
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x250], ax
lea eax, [esp + 0x252]
push eax
call fcn.0042cd00
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call fcn.00403bd0
push eax
lea eax, [esp + 0x250]
push 0x436580
push eax
call fcn.00405630
add esp, 0x10
test esi, esi
jne 0x4042fe
mov dword [0x43d9c0], 0x10000
jmp 0x404330
cmp dword [esi], 1
je 0x40430f
mov dword [0x43d9c0], 0x80000
jmp 0x404330
mov ecx, dword [esi + 4]
sub esp, 8
lea eax, [esp + 0x250]
push eax
push edi
call fcn.00424320
mov dword [0x43d9c0], eax
test eax, eax
je 0x40436e
lea esp, [esp]
test esi, esi
jne 0x404340
mov dword [0x43d9c0], 0x10000
jmp 0x404330
cmp dword [esi], 1
je 0x404351
mov dword [0x43d9c0], 0x80000
jmp 0x404330
mov ecx, dword [esi + 4]
sub esp, 8
lea eax, [esp + 0x250]
push eax
push edi
call fcn.00424320
mov dword [0x43d9c0], eax
test eax, eax
jne 0x404330
inc edi
cmp edi, ebx
jl 0x404260
test esi, esi
jne 0x404387
mov dword [0x43d9c0], 0x10000
jmp 0x4043bc
cmp dword [esi], 1
je 0x404398
mov dword [0x43d9c0], 0x80000
jmp 0x4043bc
mov edi, dword [esi + 4]
mov ecx, edi
call fcn.00424670
mov dword [0x43d9c0], eax
test edi, edi
je 0x4043b3
push ecx
mov ecx, edi
call fcn.004247e0
push esi
call fcn.00424a34
add esp, 4
push dword [esp + 0xc]
call fcn.004250a0
add esp, 4
push dword [esp + 0x10]
call fcn.004250a0
mov ecx, dword [esp + 0xa50]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004249d6
mov esp, ebp
pop ebp
ret