Function at 0x4f3070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + eax - 4]
mov eax, dword [esi + 4]
push 0
push ecx
mov ecx, dword [edx + 8]
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0x45f30410
call ecx
push esi
call fcn.004e0e90
mov edx, dword [esi]
mov ecx, dword [edx + 8]
add eax, edi
push 0
push eax
mov eax, dword [esi + 4]
push eax
call ecx
push esi
call fcn.004e0df0
movzx eax, ax
add esp, 0x20
cmp eax, 0x64
jg 0x4f3724
test eax, eax
je 0x4f3724
push ebx
jmp 0x4f30da
mov eax, dword [ebp + 0x10]
dec eax
push esi
mov dword [ebp + 0x10], eax
call fcn.004e0df0
push esi
movzx edi, ax
call fcn.004e0e90
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push eax
call ecx
mov ebx, dword [esi]
add esp, 0xc
add eax, 4
push 0
push esi
mov dword [ebp - 0xc], eax
call fcn.004e0e90
add eax, dword [ebp + 0xc]
mov edx, dword [esi + 4]
add esp, 4
push eax
mov eax, dword [ebx + 8]
push edx
call eax
mov ebx, dword [ebp + 8]
mov ecx, edi
sar ecx, 8
add ecx, 8
or ecx, 8
add esp, 0xc
cmp ecx, 0x38
jne 0x4f314d
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push ebx
push eax
call ecx
add esp, 4
push eax
push esi
call fcn.004f3070
add esp, 0xc
cmp edi, 0x810
jne 0x4f3172
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx]
push 1
push 0x40
lea eax, [esi + 0x6545]
push eax
push ecx
call edx
add esp, 0x10
jmp 0x4f3705
cmp edi, 0x80a
jne 0x4f31ce
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push 0x40
lea edi, [esi + 0x6485]
push edi
push ecx
call edx
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3197
mov ecx, dword [esi]
sub eax, edx
mov edx, dword [esi + 4]
add eax, 0xffffffc1
push 1
push eax
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
push 1
push 0x40
lea edx, [esi + 0x64c5]
push edx
push eax
call ecx
add esp, 0x1c
jmp 0x4f3705
cmp edi, 0x1810
jne 0x4f31f9
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 8]
push 1
push 0xc
push eax
call ecx
push esi
call fcn.004e0e90
add esp, 0x10
mov dword [esi + 0x66c8], eax
jmp 0x4f3705
cmp edi, 0x1835
jne 0x4f3215
push esi
call fcn.004e0e90
add esp, 4
mov dword [esi + 0x65f4], eax
jmp 0x4f3705
cmp edi, 0x2007
jne 0x4f323c
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 0x18]
push eax
call ecx
add esp, 4
mov dword [esi + 0x65c4], eax
mov dword [esi + 0x65d0], ebx
jmp 0x4f3705
cmp edi, 0x1818
jne 0x4f329b
push esi
call fcn.004e0e90
push esi
call fcn.004e0e90
push eax
call fcn.004e0f00
fchs
fld qword [0x512628]
add esp, 0xc
fxch st(1)
call sub.MSVCR100.dll__CIpow
fstp dword [esi + 0x6594]
push esi
call fcn.004e0e90
push eax
call fcn.004e0f00
fmul qword [0x546e00]
fld qword [0x512628]
add esp, 8
fxch st(1)
call sub.MSVCR100.dll__CIpow
fstp dword [esi + 0x6598]
jmp 0x4f3705
cmp edi, 0x102a
jne 0x4f33b3
push esi
call fcn.004e0e90
push esi
call fcn.004e0df0
movzx edx, ax
mov dword [ebp + 8], edx
add esp, 8
fild dword [ebp + 8]
fmul qword [0x53d2f8]
fsub qword [0x512620]
fld qword [0x512628]
fxch st(1)
call sub.MSVCR100.dll__CIpow
fstp dword [ebp + 8]
fld dword [ebp + 8]
push esi
fmul qword [0x512898]
fstp dword [esi + 0x6590]
call fcn.004e0df0
push esi
call fcn.004e0df0
cwde
mov dword [ebp + 8], eax
add esp, 8
fild dword [ebp + 8]
fmul qword [0x53d2f0]
fld qword [0x512628]
fxch st(1)
call sub.MSVCR100.dll__CIpow
fstp dword [esi + 0x6598]
push esi
call fcn.004e0df0
movsx ecx, ax
neg ecx
mov dword [ebp + 8], ecx
add esp, 4
fild dword [ebp + 8]
fmul qword [0x53d2f8]
fld qword [0x512628]
fxch st(1)
call sub.MSVCR100.dll__CIpow
fstp dword [esi + 0x6594]
push esi
call fcn.004e0df0
push esi
call fcn.004e0df0
movzx eax, ax
add esp, 8
mov dword [ebp - 4], eax
cmp eax, 0x11
jle 0x4f3367
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 8]
push 1
push 0x20
push eax
call ecx
fld dword [esi + 0x6594]
fcomp qword [0x53d4d8]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x4f3705
push esi
call fcn.004e0df0
movzx edx, ax
mov dword [ebp + 8], edx
add esp, 4
fild dword [ebp + 8]
fdiv qword [0x53d4d0]
fstp dword [esi + 0x6594]
jmp 0x4f3705
cmp edi, 0x102c
jne 0x4f344e
push esi
call fcn.004e0df0
add esp, 4
mov ecx, 0x200
push 1
cmp ax, cx
jbe 0x4f340f
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [edx + 8]
push 0x76
push eax
call ecx
add esp, 0xc
xor edi, edi
push esi
call fcn.004e0df0
movzx edx, ax
mov dword [ebp + 8], edx
mov eax, edi
xor eax, 2
fild dword [ebp + 8]
inc edi
add esp, 4
fstp dword [esi + eax*4 + 0xe774]
cmp edi, 4
jl 0x4f33e6
jmp 0x4f3705
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [ecx + 8]
push 0x62
push edx
call eax
add esp, 0xc
xor edi, edi
push esi
call fcn.004e0df0
mov edx, edi
movzx ecx, ax
xor edx, 2
sar edx, 1
mov dword [ebp + 8], ecx
xor edx, edi
inc edi
fild dword [ebp + 8]
add esp, 4
fstp dword [esi + edx*4 + 0xe774]
cmp edi, 4
jl 0x4f3421
jmp 0x4f3705
cmp edi, 0x32
jne 0x4f3577
cmp ebx, 0x300
jne 0x4f34bf
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 8]
push 1
push 0x48
push ecx
call edx
add esp, 0xc
xor edi, edi
push esi
call fcn.004e0df0
movzx eax, ax
mov dword [ebp + 8], eax
mov ecx, edi
sar ecx, 1
fild dword [ebp + 8]
xor ecx, edi
inc edi
add esp, 4
fdivr qword [0x546dd8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esi + ecx*4 + 0xe774]
cmp edi, 4
jl 0x4f3473
cmp dword [ebp - 4], 0
jne 0x4f3705
fld dword [0x512634]
fstp dword [esi + 0xe774]
jmp 0x4f3705
fld dword [esi + 0xe774]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x4f3705
push esi
call fcn.004e0df0
add esp, 4
cmp ax, word [ebp - 8]
jne 0x4f3511
lea edx, [esi + 0x64c5]
push str.Pro1
push edx
call sub.MSVCR100.dll_strstr
add esp, 8
test eax, eax
mov eax, str.012346000000000000
jne 0x4f3505
mov eax, str.01345:000000006008
mov ecx, dword [ebp - 4]
movsx eax, byte [eax + ecx]
sub eax, 0x2e
jmp 0x4f3523
mov edx, dword [ebp - 4]
movsx eax, byte [edx + str.023457000000006000]
sub eax, 0x30
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
lea edx, [eax*8 + 0x4e]
mov eax, dword [esi + 4]
push 1
push edx
push eax
call ecx
add esp, 0xc
xor edi, edi
lea ecx, [ecx]
push esi
call fcn.004e0df0
mov edx, edi
and edx, 1
xor ax, word [ebp + edx*2 - 8]
mov ecx, edi
movzx eax, ax
xor ecx, 2
sar ecx, 1
mov dword [ebp + 8], eax
xor ecx, edi
inc edi
fild dword [ebp + 8]
add esp, 4
fstp dword [esi + ecx*4 + 0xe774]
cmp edi, 4
jl 0x4f3540
jmp 0x4f34a4
cmp edi, 0x10a9
jne 0x4f35db
cmp ebx, 0x42
jle 0x4f3594
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x53d480]
sub eax, 0x30
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
lea eax, [edx*8 + 2]
mov edx, dword [esi + 4]
push 1
push eax
mov eax, dword [ecx + 8]
push edx
call eax
add esp, 0xc
xor edi, edi
push esi
call fcn.004e0df0
movzx ecx, ax
mov edx, edi
sar edx, 1
mov dword [ebp + 8], ecx
xor edx, edi
inc edi
fild dword [ebp + 8]
add esp, 4
fstp dword [esi + edx*4 + 0xe774]
cmp edi, 4
jl 0x4f35b1
jmp 0x4f3705
cmp edi, 0x1030
jne 0x4f3603
mov ecx, dword [ebp - 4]
mov eax, 0x18040
sar eax, cl
test al, 1
je 0x4f3705
push esi
call fcn.004f2f90
add esp, 4
jmp 0x4f3705
cmp edi, 0x1031
jne 0x4f3633
push esi
call fcn.004e0df0
push esi
call fcn.004e0df0
push esi
mov word [esi + 0x66b2], ax
call fcn.004e0df0
add esp, 0xc
mov word [esi + 0x66b0], ax
jmp 0x4f3705
cmp edi, 0x5029
jne 0x4f3672
mov ecx, ebx
sar ecx, 0x10
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
and ebx, 0xffff
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [esi + 0x659c]
cmp ebx, 2
jne 0x4f3703
fmul qword [0x53d2f8]
fstp dword [esi + 0x659c]
jmp 0x4f3705
cmp edi, 0x5813
jne 0x4f368e
push ebx
call fcn.004e0f00
fstp dword [esi + 0x6588]
add esp, 4
jmp 0x4f3705
cmp edi, 0x5814
jne 0x4f36a7
push ebx
call fcn.004e0f00
fstp dword [esi + 0x658c]
add esp, 4
jmp 0x4f3705
cmp edi, 0x5817
jne 0x4f36b7
mov dword [esi + 0x65a8], ebx
jmp 0x4f3705
cmp edi, 0x5834
jne 0x4f36c7
mov dword [esi + 0x65b8], ebx
jmp 0x4f3705
cmp edi, 0x580e
jne 0x4f36e0
mov eax, ebx
cdq
mov dword [esi + 0x65a0], eax
mov dword [esi + 0x65a4], edx
jmp 0x4f3705
cmp edi, 0x180e
jne 0x4f3705
push esi
call fcn.004e0e90
add esp, 4
mov dword [esi + 0x65a0], eax
mov dword [esi + 0x65a4], 0
jmp 0x4f3705
fstp st(0)
mov eax, dword [ebp - 0xc]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 8]
push 0
push eax
push ecx
call edx
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4f30d7
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret