Function at 0x41a938
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, dword [0x455584]
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add edx, ecx
mov eax, dword [0x4a9094]
add edx, 0xfffffffc
push edx
push eax
call fcn.00425620
add esp, 0xc
call fcn.00401608
mov edx, dword [ebp + 8]
add eax, edx
push 0
push eax
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
call fcn.00401580
movzx eax, ax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
or edx, ecx
cmp edx, 0x7f
jg 0x41af6e
jmp 0x41af5f
call fcn.00401580
movzx esi, ax
call fcn.00401608
mov edi, eax
mov eax, dword [0x4a9094]
push eax
call fcn.0042576c
pop ecx
add eax, 4
mov dword [ebp - 8], eax
push 0
call fcn.00401608
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
mov eax, esi
sar eax, 8
add eax, 8
or eax, 8
cmp eax, 0x38
jne 0x41aa12
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x4a9094]
inc edx
push edx
push edi
push ecx
call fcn.0042576c
pop ecx
push eax
call fcn.0041a938
add esp, 0xc
cmp esi, 0x810
jne 0x41aa31
mov eax, dword [0x4a9094]
push eax
push 1
push 0x40
push 0x4a93b5
call fcn.004256d0
add esp, 0x10
cmp esi, 0x80a
jne 0x41aa88
mov edx, dword [0x4a9094]
push edx
push 1
push 0x40
push 0x4a92f5
call fcn.004256d0
add esp, 0x10
push 1
push 0x4a92f5
call fcn.00446864
pop ecx
sub eax, 0x3f
push eax
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
mov eax, dword [0x4a9094]
push eax
push 1
push 0x40
push 0x4a9335
call fcn.004256d0
add esp, 0x10
cmp esi, 0x1810
jne 0x41aac0
call fcn.00401608
mov dword [0x4a9534], eax
call fcn.00401608
mov dword [0x4a9530], eax
call fcn.00401608
push eax
call fcn.00401650
fstp qword [0x4cb5fc]
pop ecx
call fcn.00401608
mov dword [0x4a9514], eax
cmp esi, 0x1835
jne 0x41aad2
call fcn.00401608
mov dword [0x4a945c], eax
cmp esi, 0x2007
jne 0x41aaf2
mov edx, dword [0x4a9094]
push edx
call fcn.0042576c
pop ecx
mov dword [0x4a941c], eax
mov dword [0x4a9438], edi
cmp esi, 0x1818
jne 0x41ab55
call fcn.00401608
call fcn.00401608
push eax
call fcn.00401650
pop ecx
add esp, 0xfffffff8
fchs
fstp qword [esp]
push 0x40000000
push 0
call fcn.0044dc04
fstp dword [0x4a9404]
add esp, 0x10
call fcn.00401608
push eax
call fcn.00401650
pop ecx
fmul dword [0x41af78]
add esp, 0xfffffff8
fstp qword [esp]
push 0x40000000
push 0
call fcn.0044dc04
fstp dword [0x4a9408]
add esp, 0x10
cmp esi, 0x102a
jne 0x41ac63
call fcn.00401608
call fcn.00401580
movzx ecx, ax
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
fmul dword [0x41af7c]
fsub dword [0x41af80]
add esp, 0xfffffff8
fstp qword [esp]
push 0x40000000
push 0
call fcn.0044dc04
add esp, 0x10
fmul dword [0x41af84]
fstp dword [0x4a9400]
call fcn.00401580
call fcn.00401580
movsx eax, ax
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul dword [0x41af88]
add esp, 0xfffffff8
fstp qword [esp]
push 0x40000000
push 0
call fcn.0044dc04
fstp dword [0x4a9408]
add esp, 0x10
call fcn.00401580
movsx edx, ax
neg edx
mov dword [ebp - 0x1c], edx
fild dword [ebp - 0x1c]
fmul dword [0x41af7c]
add esp, 0xfffffff8
fstp qword [esp]
push 0x40000000
push 0
call fcn.0044dc04
fstp dword [0x4a9404]
add esp, 0x10
call fcn.00401580
call fcn.00401580
movzx ecx, ax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp eax, 0x11
jle 0x41ac23
xor edx, edx
mov dword [ebp - 0xc], edx
push 1
push 0x20
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
fld dword [0x4a9404]
fcomp dword [0x41af8c]
fnstsw ax
sahf
jbe 0x41ac63
call fcn.00401580
movzx edx, ax
mov dword [ebp - 0x20], edx
fild dword [ebp - 0x20]
fld xword [0x41af90]
fmulp st(1)
fstp dword [0x4a9404]
cmp esi, 0x102c
jne 0x41ace6
call fcn.00401580
cmp ax, 0x200
jbe 0x41acad
push 1
push 0x76
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
xor ebx, ebx
call fcn.00401580
movzx eax, ax
mov dword [ebp - 0x24], eax
mov edx, ebx
fild dword [ebp - 0x24]
xor edx, 2
inc ebx
cmp ebx, 4
fstp dword [edx*4 + 0x4cb684]
jl 0x41ac8b
jmp 0x41ace6
push 1
push 0x62
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
xor ebx, ebx
call fcn.00401580
movzx eax, ax
mov edx, ebx
mov dword [ebp - 0x28], eax
sar edx, 1
xor edx, ebx
inc ebx
fild dword [ebp - 0x28]
xor edx, 1
cmp ebx, 4
fstp dword [edx*4 + 0x4cb684]
jl 0x41acc2
cmp esi, 0x32
jne 0x41ae0e
cmp edi, 0x300
jne 0x41ad4d
push 1
push 0x48
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
xor ebx, ebx
call fcn.00401580
movzx eax, ax
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fdivr dword [0x41af9c]
mov edx, ebx
sar edx, 1
xor edx, ebx
inc ebx
cmp ebx, 4
fstp dword [edx*4 + 0x4cb684]
jl 0x41ad0c
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x41ae0e
mov dword [0x4cb684], 0xbf800000
jmp 0x41ae0e
fld dword [0x4cb684]
fcomp dword [0x41afa0]
fnstsw ax
sahf
jne 0x41ae0e
call fcn.00401580
cmp ax, word [ebp - 0x10]
jne 0x41ad9e
push str.Pro1
push 0x4a9335
call fcn.00446b30
add esp, 8
test eax, eax
je 0x41ad8a
mov edx, str.012346000000000000
jmp 0x41ad8f
mov edx, str.01345:000000006008
mov eax, dword [ebp - 0xc]
movsx ebx, byte [edx + eax]
sub ebx, 0x30
add ebx, 2
jmp 0x41adb5
mov eax, dword [ebp - 0xc]
movsx ebx, byte [eax + str.023457000000006000]
sub ebx, 0x30
xor eax, eax
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], ax
shl ebx, 3
push 1
add ebx, 0x4e
mov edx, dword [0x4a9094]
push ebx
push edx
call fcn.00425620
add esp, 0xc
xor ebx, ebx
call fcn.00401580
mov edx, ebx
mov ecx, ebx
and edx, 1
sar ecx, 1
xor ax, word [ebp + edx*2 - 0x10]
movzx eax, ax
mov dword [ebp - 0x30], eax
xor ecx, ebx
fild dword [ebp - 0x30]
xor ecx, 1
inc ebx
cmp ebx, 4
fstp dword [ecx*4 + 0x4cb684]
jl 0x41adcf
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41ae0e
mov dword [0x4cb684], 0xbf800000
cmp esi, 0x10a9
jne 0x41ae69
cmp edi, 0x42
jle 0x41ae2b
mov ecx, dword [ebp - 0xc]
movsx eax, byte [ecx + str.0134567028]
sub eax, 0x30
mov dword [ebp - 0xc], eax
push 1
mov edx, dword [ebp - 0xc]
shl edx, 3
add edx, 2
push edx
mov ecx, dword [0x4a9094]
push ecx
call fcn.00425620
add esp, 0xc
xor ebx, ebx
call fcn.00401580
movzx eax, ax
mov edx, ebx
mov dword [ebp - 0x34], eax
sar edx, 1
fild dword [ebp - 0x34]
xor edx, ebx
inc ebx
cmp ebx, 4
fstp dword [edx*4 + 0x4cb684]
jl 0x41ae48
cmp esi, 0x1030
jne 0x41ae84
mov ecx, dword [ebp - 0xc]
mov eax, 0x18040
sar eax, cl
test al, 1
je 0x41ae84
call fcn.0041a858
cmp esi, 0x1031
jne 0x41aead
call fcn.00401580
call fcn.00401580
movzx edx, ax
mov dword [0x4a952c], edx
call fcn.00401580
movzx ecx, ax
mov dword [0x4a9528], ecx
cmp esi, 0x5029
jne 0x41aee5
mov eax, edi
mov edx, edi
sar eax, 0x10
and edx, 0xffff
mov dword [ebp - 0x38], eax
cmp edx, 2
fild dword [ebp - 0x38]
fstp dword [0x4a940c]
jne 0x41aee5
fld dword [0x41af7c]
fmul dword [0x4a940c]
fstp dword [0x4a940c]
cmp esi, 0x5813
jne 0x41aefa
push edi
call fcn.00401650
fstp dword [0x4a93f8]
pop ecx
cmp esi, 0x5814
jne 0x41af0f
push edi
call fcn.00401650
fstp dword [0x4a93fc]
pop ecx
cmp esi, 0x5817
jne 0x41af1d
mov dword [0x4a9428], edi
cmp esi, 0x5834
jne 0x41af2b
mov dword [0x4a9434], edi
cmp esi, 0x580e
jne 0x41af39
mov dword [0x4a9410], edi
cmp esi, 0x180e
jne 0x41af4b
call fcn.00401608
mov dword [0x4a9410], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [0x4a9094]
push eax
call fcn.00425620
add esp, 0xc
mov edx, dword [ebp - 4]
add dword [ebp - 4], 0xffffffff
test edx, edx
jne 0x41a9a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret