Function at 0x5d7f73
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.005c5d83
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.005c5ce3
movzx eax, ax
add esp, 0x20
cmp eax, 0x64
jg 0x5d8627
test eax, eax
je 0x5d8627
push ebx
jmp 0x5d7fdd
mov eax, dword [ebp + 0x10]
dec eax
push esi
mov dword [ebp + 0x10], eax
call fcn.005c5ce3
push esi
movzx edi, ax
call fcn.005c5d83
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.005c5d83
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 0x5d8050
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.005d7f73
add esp, 0xc
cmp edi, 0x810
jne 0x5d8075
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 0x5d8608
cmp edi, 0x80a
jne 0x5d80d1
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 0x5d809a
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 0x5d8608
cmp edi, 0x1810
jne 0x5d80fc
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.005c5d83
add esp, 0x10
mov dword [esi + 0x66c8], eax
jmp 0x5d8608
cmp edi, 0x1835
jne 0x5d8118
push esi
call fcn.005c5d83
add esp, 4
mov dword [esi + 0x65f4], eax
jmp 0x5d8608
cmp edi, 0x2007
jne 0x5d813f
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 0x5d8608
cmp edi, 0x1818
jne 0x5d819e
push esi
call fcn.005c5d83
push esi
call fcn.005c5d83
push eax
call fcn.005c5df3
fchs
fld qword [0x10105338]
add esp, 0xc
fxch st(1)
call fcn.0064b163
fstp dword [esi + 0x6594]
push esi
call fcn.005c5d83
push eax
call fcn.005c5df3
fmul qword [0x101430e0]
fld qword [0x10105338]
add esp, 8
fxch st(1)
call fcn.0064b163
fstp dword [esi + 0x6598]
jmp 0x5d8608
cmp edi, 0x102a
jne 0x5d82b6
push esi
call fcn.005c5d83
push esi
call fcn.005c5ce3
movzx edx, ax
mov dword [ebp + 8], edx
add esp, 8
fild dword [ebp + 8]
fmul qword [0x1010c1e0]
fsub qword [0x101430a8]
fld qword [0x10105338]
fxch st(1)
call fcn.0064b163
fstp dword [ebp + 8]
fld dword [ebp + 8]
push esi
fmul qword [0x1010c1d8]
fstp dword [esi + 0x6590]
call fcn.005c5ce3
push esi
call fcn.005c5ce3
cwde
mov dword [ebp + 8], eax
add esp, 8
fild dword [ebp + 8]
fmul qword [0x1010c1d0]
fld qword [0x10105338]
fxch st(1)
call fcn.0064b163
fstp dword [esi + 0x6598]
push esi
call fcn.005c5ce3
movsx ecx, ax
neg ecx
mov dword [ebp + 8], ecx
add esp, 4
fild dword [ebp + 8]
fmul qword [0x1010c1e0]
fld qword [0x10105338]
fxch st(1)
call fcn.0064b163
fstp dword [esi + 0x6594]
push esi
call fcn.005c5ce3
push esi
call fcn.005c5ce3
movzx eax, ax
add esp, 8
mov dword [ebp - 4], eax
cmp eax, 0x11
jle 0x5d826a
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 [0x1010c3e0]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x5d8608
push esi
call fcn.005c5ce3
movzx edx, ax
mov dword [ebp + 8], edx
add esp, 4
fild dword [ebp + 8]
fdiv qword [0x1010c3d8]
fstp dword [esi + 0x6594]
jmp 0x5d8608
cmp edi, 0x102c
jne 0x5d8351
push esi
call fcn.005c5ce3
add esp, 4
mov ecx, 0x200
push 1
cmp ax, cx
jbe 0x5d8312
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.005c5ce3
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 0x5d82e9
jmp 0x5d8608
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.005c5ce3
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 0x5d8324
jmp 0x5d8608
cmp edi, 0x32
jne 0x5d847a
cmp ebx, 0x300
jne 0x5d83c2
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.005c5ce3
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 [0x1010c3d0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esi + ecx*4 + 0xe774]
cmp edi, 4
jl 0x5d8376
cmp dword [ebp - 4], 0
jne 0x5d8608
fld dword [0x10105344]
fstp dword [esi + 0xe774]
jmp 0x5d8608
fld dword [esi + 0xe774]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x5d8608
push esi
call fcn.005c5ce3
add esp, 4
cmp ax, word [ebp - 8]
jne 0x5d8414
lea edx, [esi + 0x64c5]
push 0x1010c3c8
push edx
call fcn.00574c03
add esp, 8
test eax, eax
mov eax, 0x1010c3b4
jne 0x5d8408
mov eax, 0x1010c3a0
mov ecx, dword [ebp - 4]
movsx eax, byte [eax + ecx]
sub eax, 0x2e
jmp 0x5d8426
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x1010c38c]
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.005c5ce3
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 0x5d8443
jmp 0x5d83a7
cmp edi, 0x10a9
jne 0x5d84de
cmp ebx, 0x42
jle 0x5d8497
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x1010c380]
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.005c5ce3
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 0x5d84b4
jmp 0x5d8608
cmp edi, 0x1030
jne 0x5d8506
mov ecx, dword [ebp - 4]
mov eax, 0x18040
sar eax, cl
test al, 1
je 0x5d8608
push esi
call fcn.005d7e93
add esp, 4
jmp 0x5d8608
cmp edi, 0x1031
jne 0x5d8536
push esi
call fcn.005c5ce3
push esi
call fcn.005c5ce3
push esi
mov word [esi + 0x66b2], ax
call fcn.005c5ce3
add esp, 0xc
mov word [esi + 0x66b0], ax
jmp 0x5d8608
cmp edi, 0x5029
jne 0x5d8575
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 0x5d8606
fmul qword [0x1010c1e0]
fstp dword [esi + 0x659c]
jmp 0x5d8608
cmp edi, 0x5813
jne 0x5d8591
push ebx
call fcn.005c5df3
fstp dword [esi + 0x6588]
add esp, 4
jmp 0x5d8608
cmp edi, 0x5814
jne 0x5d85aa
push ebx
call fcn.005c5df3
fstp dword [esi + 0x658c]
add esp, 4
jmp 0x5d8608
cmp edi, 0x5817
jne 0x5d85ba
mov dword [esi + 0x65a8], ebx
jmp 0x5d8608
cmp edi, 0x5834
jne 0x5d85ca
mov dword [esi + 0x65b8], ebx
jmp 0x5d8608
cmp edi, 0x580e
jne 0x5d85e3
mov eax, ebx
cdq
mov dword [esi + 0x65a0], eax
mov dword [esi + 0x65a4], edx
jmp 0x5d8608
cmp edi, 0x180e
jne 0x5d8608
push esi
call fcn.005c5d83
add esp, 4
mov dword [esi + 0x65a0], eax
mov dword [esi + 0x65a4], 0
jmp 0x5d8608
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 0x5d7fda
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret