Function at 0x403e54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esp
push 0
mov eax, 9
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x403eb9
push 6
call fcn.00457076
add esp, 4
mov dword [ebp - 4], 0
cmp dword [0x6fd720], 0
jle 0x403ee2
push dword [0x6fd720]
push 0x6fd688
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 1
push 7
push 0x6fd68c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x5488a7
mov ecx, 2
call fcn.00401300
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x403f26
push ebx
call fcn.00457070
add esp, 4
fild dword [0x6fd700]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x548742]
fstp qword [ebp - 0x38]
push 1
push dword [0x6fd700]
push 1
fld qword [ebp - 0x38]
call fcn.004017ce
push eax
lea eax, [ebp - 0x28]
push eax
push 0x6fd688
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403f74
push ebx
call fcn.00457070
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [0x6fd720], eax
mov ebx, dword [0x6fd724]
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
push 0x12
push 0x16017221
push 0x52010001
call fcn.00457094
add esp, 0x10
test eax, eax
je 0x403fad
mov eax, 1
jmp 0x403fb2
mov eax, 0
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [0x6fd724]
add ebx, 4
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
push 0x13
push 0x160172be
push 0x52010001
call fcn.00457094
add esp, 0x10
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x548742]
fstp qword [ebp - 0x38]
push 0xffffffffffffffff
push 0x12
push 0x160172bd
push 0x52010001
call fcn.00457094
add esp, 0x10
test eax, eax
je 0x404017
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x404021
mov edx, 0
mov eax, 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
fld qword [ebp - 0x4c]
call fcn.004017ce
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov dword [ebp - 8], 0xffffffff
push 0x50004
push 0x160142fe
push 0x52010001
push 1
mov eax, 4
mov ebx, 0x4eae10
call fcn.00457082
add esp, 0x10
push 1
lea eax, [ebp - 0xc]
push eax
mov edx, 0x160142fe
mov eax, 0x52010001
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 5
call fcn.00404954
and eax, 1
xor eax, 1
test eax, eax
je 0x4040da
push dword [ebp - 0xc]
push 0x5488af
mov ecx, 2
call fcn.00401300
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4040da
push ebx
call fcn.00457070
add esp, 4
inc dword [ebp - 8]
cmp dword [0x6fd718], 0
jne 0x404120
push 0x50004
push 0x160142fe
push 0x52010001
push 1
mov eax, 4
mov ebx, 0x4eacc0
call fcn.00457082
add esp, 0x10
cmp dword [ebp - 8], eax
jge 0x404120
mov eax, 1
jmp 0x404125
mov eax, 0
and eax, 1
xor eax, 1
test eax, eax
je 0x404138
jmp 0x4047e1
push 0x80000301
push 0
push dword [ebp - 8]
push 0x50004
push 0x160142fe
push 0x52010001
push 2
mov eax, 4
mov ebx, 0x4eb0a0
call fcn.00457082
add esp, 0x1c
push 1
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 8]
push 0x40da12
push 0x6fd710
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 1
xor eax, 1
test eax, eax
jne 0x404168
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
mov eax, 8
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x4041b9
push 6
call fcn.00457076
add esp, 4
push 0x6fd728
push 0x6fd714
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x24], esp
push 0xffffffff
push dword [0x6fd720]
mov eax, 0xa
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x4041f7
push 6
call fcn.00457076
add esp, 4
push 0xffffffffffffffff
push 8
push 0x1601718e
push 0x52010001
call fcn.00457094
add esp, 0x10
mov dword [ebp - 0x24], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x404223
mov eax, 0x5316f0
push eax
push 1
mov ebx, 0x4580e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404249
push ebx
call fcn.00457070
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x404260
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp dword [0x6fd728], eax
jl 0x404389
push 0x80000301
push 0
push dword [0x6fd728]
push 1
mov ebx, 0x4592e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x4592e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x5488c2
push dword [ebp - 0x28]
push 0x5488de
push dword [ebp - 0x24]
push 0x5488e0
mov ecx, 5
call fcn.00401300
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4042e5
push ebx
call fcn.00457070
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4042f5
push ebx
call fcn.00457070
add esp, 4
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404324
push ebx
call fcn.00457070
add esp, 4
mov dword [ebp - 0x24], esp
push 0x3e8
mov eax, 0xb
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x404348
push 6
call fcn.00457076
add esp, 4
call fcn.00409d68
cmp dword [0x6fd728], 0
jle 0x40436e
cmp dword [0x6fd718], 0
jne 0x40436e
mov eax, 1
jmp 0x404373
mov eax, 0
test eax, eax
jne 0x404324
cmp dword [0x6fd718], 1
jne 0x404389
jmp 0x404791
cmp dword [0x6fd700], 1
jne 0x404549
push 0xffffffffffffffff
push 8
push 0x160142f7
push 0x52010001
call fcn.00457094
add esp, 0x10
mov dword [ebp - 0x24], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4043c2
mov eax, 0x5316f0
push eax
push 1
mov ebx, 0x4585f0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4043e8
push ebx
call fcn.00457070
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4043fb
mov eax, 0x5316f0
push eax
push 1
mov ebx, 0x4580e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404421
push ebx
call fcn.00457070
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x404474
cmp dword [0x6fd718], 0
jne 0x404474
push 0x50004
push 0x160142fe
push 0x52010001
push 1
mov eax, 4
mov ebx, 0x4eacc0
call fcn.00457082
add esp, 0x10
cmp dword [ebp - 8], eax
jge 0x404474
mov eax, 1
jmp 0x404479
mov eax, 0
test eax, eax
je 0x404549
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x4592e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x5488f3
push dword [ebp - 0x24]
push 0x5488ff
mov ecx, 3
call fcn.00401300
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4044cd
push ebx
call fcn.00457070
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4044fc
push ebx
call fcn.00457070
add esp, 4
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x404546
mov dword [ebp - 0x24], esp
push 0x3e8
mov eax, 0xb
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x404530
push 6
call fcn.00457076
add esp, 4
cmp dword [0x6fd718], 1
jne 0x404542
jmp 0x404546
pop eax
pop ecx
jmp 0x404501
add esp, 8
push 0xffffffffffffffff
push 8
push 0x160142fa
push 0x52010001
call fcn.00457094
add esp, 0x10
mov dword [ebp - 0x24], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x404575
mov eax, 0x5316f0
push eax
push 1
mov ebx, 0x4585f0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40459b
push ebx
call fcn.00457070
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4045ae
mov eax, 0x5316f0
push eax
push 1
mov ebx, 0x4580e0
call fcn.0045706a
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4045d4
push ebx
call fcn.00457070
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x404690
cmp dword [0x6fd698], 0
jle 0x404690
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
push 0x80000601
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
fild dword [0x6fd698]
fstp qword [ebp - 0x38]
push 0x80000601
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 2
mov ebx, 0x4573e0
call fcn.0045706a
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fld qword [ebp - 0x48]
ftst
fnstsw ax
test ah, 1
je 0x40463c
fchs
fcomp qword [0x54871a]
fnstsw ax
test ah, 0x41
je 0x404690
cmp dword [0x6fd718], 0
jne 0x404690
push 0x50004
push 0x160142fe
push 0x52010001
push 1
mov eax, 4
mov ebx, 0x4eacc0
call fcn.00457082
add esp, 0x10
cmp dword [ebp - 8], eax
jge 0x404690
mov eax, 1
jmp 0x404695
mov eax, 0
test eax, eax
je 0x404791
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x548904
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4046d4
push ebx
call fcn.00457070
add esp, 4
cmp dword [0x6fd728], 0
jle 0x404719
mov dword [ebp - 0x24], esp
push 0x3e8
mov eax, 0xb
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x404705
push 6
call fcn.00457076
add esp, 4
cmp dword [0x6fd718], 1
jne 0x404717
jmp 0x404719
jmp 0x4046d4
cmp dword [0x6fd718], 0
jne 0x404791
call fcn.0040a0b5
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404742
push ebx
call fcn.00457070
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x6fd6fc
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
and eax, 1
xor eax, 1
test eax, eax
je 0x404788
cmp dword [0x6fd718], 0
jne 0x404788
mov eax, 1
jmp 0x40478d
mov eax, 0
test eax, eax
jne 0x404726
cmp dword [0x6fd718], 0
jne 0x4047d4
push 0x50004
push 0x160142fe
push 0x52010001
push 1
mov eax, 4
mov ebx, 0x4eacc0
call fcn.00457082
add esp, 0x10
cmp dword [ebp - 8], eax
jge 0x4047d4
mov eax, 1
jmp 0x4047d9
mov eax, 0
test eax, eax
jne 0x404061
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x54891a
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404818
push ebx
call fcn.00457070
add esp, 4
cmp dword [0x6fd728], 0
jle 0x40484b
mov dword [ebp - 0x24], esp
push 0x3e8
mov eax, 0xb
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x404849
push 6
call fcn.00457076
add esp, 4
jmp 0x404818
push 0
push 0
push 0xffffffffffffffff
push 6
push 0x160142d8
push 0x52010001
call fcn.0045708e
add esp, 0x18
push 0
push 0x548761
push 0xffffffffffffffff
push 0xa
push 0x160142d8
push 0x52010001
call fcn.0045708e
add esp, 0x18
mov dword [0x6fd708], 0
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x54894c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x6fd71c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4048c6
push ebx
call fcn.00457070
add esp, 4
push dword [0x6fd720]
push 0x6fd688
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [0x6fd720], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push 5
call fcn.0040a711
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40490c
push ebx
call fcn.00457070
add esp, 4
mov dword [ebp - 0x24], esp
mov eax, 0xc
call fcn.0045707c
cmp dword [ebp - 0x24], esp
je 0x40492b
push 6
call fcn.00457076
add esp, 4
jmp 0x404930
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404940
push ebx
call fcn.00457070
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404950
push ebx
call fcn.00457070
add esp, 4
mov esp, ebp
pop ebp
ret